- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Fortran error when compiling 11.0 code on 10.20
Operating System - HP-UX
1745825
Members
4122
Online
108722
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 09:42 AM
тАО01-08-2003 09:42 AM
Hello all,
We have developed some Fortran 90 code on an HP-UX 11.0 box with Fortran 90 version 2.5.1 (product number B.11.01.40). When we try to compile this same code on an 10.20 machine with Fortran 90 version 2.4 (product number BH.10.20.20), it gives up an "UNEXPECTED FORMAT ..." error for all the comments that we have placed to the right of code (in a nameless format). Is there some work around to this problem? I could go back and edit all the code to move the comments to seperate lines, but I am looking for something where we would not have to edit the source code.
Thanks,
Jane
We have developed some Fortran 90 code on an HP-UX 11.0 box with Fortran 90 version 2.5.1 (product number B.11.01.40). When we try to compile this same code on an 10.20 machine with Fortran 90 version 2.4 (product number BH.10.20.20), it gives up an "UNEXPECTED FORMAT ..." error for all the comments that we have placed to the right of code (in a nameless format). Is there some work around to this problem? I could go back and edit all the code to move the comments to seperate lines, but I am looking for something where we would not have to edit the source code.
Thanks,
Jane
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 09:54 AM
тАО01-08-2003 09:54 AM
Re: Fortran error when compiling 11.0 code on 10.20
In my college days, say in the very early 1980's, we used LINT to free ourselves. I doubt that's available today, but you never know.
Or you could write a program to preprocess your code before compiling it. That's one of the dangers of trying to make newer versions backwards compatible.
live free or die
harry
Or you could write a program to preprocess your code before compiling it. That's one of the dangers of trying to make newer versions backwards compatible.
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2003 01:45 AM
тАО01-10-2003 01:45 AM
Solution
Modern Fortran compilers allow you to use Fortran-77 style fixed format (80 columns, column 6 significant, etc.) and free format (like all other programming languages). Perhaps there is a compilation switch for changing between these two options, which you need to provide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2003 07:08 AM
тАО01-10-2003 07:08 AM
Re: Fortran error when compiling 11.0 code on 10.20
Thanks all for your ideas.
We ended up running the code through a script to remove all the comments, and then it compiled just fine.
Jane
We ended up running the code through a script to remove all the comments, and then it compiled just fine.
Jane
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP