- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having trouble with compiler settings. I have an old F77 program (from VMS/alpha site) which used the /EXTEND_SOURCE setting - it has some source lines of 80 characters.
If I tediously edit the source and convert all lines to 72 characters max, I can "use" some F90 modules within it and compile and link using all the defaults. But editing takes a long time and I'd like to use the /extend_source option in the project settings/Fortran tab. But it doesn't quite work - something goes wrong with the F90 source files that I'm "using" in the project.
So what settings do I need in order to compile and link a project that consists of an F77 source file having long lines, with several F90 modules, some of which are "used", and one of which is just a collection of subroutines that are called?
With many thanks in advance
Mike
If I tediously edit the source and convert all lines to 72 characters max, I can "use" some F90 modules within it and compile and link using all the defaults. But editing takes a long time and I'd like to use the /extend_source option in the project settings/Fortran tab. But it doesn't quite work - something goes wrong with the F90 source files that I'm "using" in the project.
So what settings do I need in order to compile and link a project that consists of an F77 source file having long lines, with several F90 modules, some of which are "used", and one of which is just a collection of subroutines that are called?
With many thanks in advance
Mike
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At present, if you use /extend_source, that implies /source_form:fixed, thus causing your free-form sources to compile incorrectly. It is that way in Compaq Fortran too. I have (successfully, I think) argued that this is not a desireable behavior and I think it will change in a future release.
The workaround for now is to set ./extend_source as an option on the individual fixed-form source files, rather than the whole project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At present, if you use /extend_source, that implies /source_form:fixed, thus causing your free-form sources to compile incorrectly. It is that way in Compaq Fortran too. I have (successfully, I think) argued that this is not a desireable behavior and I think it will change in a future release of Intel Fortran; I don't know if the change will make its way into HP Fortran.
The workaround for now is to set ./extend_source as an option on the individual fixed-form source files, rather than the whole project.
Reply
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