Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29297 Discussions

How can I change the source form in Intel Fortran compiler 9.0?

sv6wc
Beginner
481 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
481 Views
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.
0 Kudos
Reply