- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to compile fortran code which has "C" for a comment line using Intel fortran compiler for Windows 9.0. When I try to compile this code, I am getting an error saying "unknown variable". I found from Intel Fortran language manual that there are actually two source forms. I guess free source form is the default. But I think fixed source form suports the comment line starting with "C". My question is how can I change the option of free source form to fixed source form? I am using command line to compile the fortran program. Any suggestion with regard to this is really appreciated.
Thanks,
Lalitha
Thanks,
Lalitha
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably have the file named with a .f90 file type. The easiest thing to do is to rename it with a .f or .for file type, which implies fixed-form. Otherwise you can add /fixed to the command line.

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