|
|
 |
 |
 |
 |
Fortran Programming Language
|
 |
 |
 |
 |
 |
 |
 |
 |
comments in xlf, urgent
Dear Friends, I have the xlf compiler ver 8.1 i need to compile codes that use 'c' as comment & also '!' some files have extension .f and others .f90 what compiler options do i use. xlf95 is giving error for anything else except for the comment '!' in a .f file Thanks in Advance
On 27 Apr 2007 09:49:53 -0700, Magician wrote: > Dear Friends, > I have the xlf compiler ver 8.1 > i need to compile codes that use 'c' as comment & also '!' > some files have extension .f and others .f90 > what compiler options do i use. xlf95 is giving error > for anything else except for the comment '!' in a .f file > Thanks in Advance
The xlf compiler, unlike most Fortran compilers, does not use the suffix to determine whether it is to use fixed-format or free-format source. Instead, it's the compiler name that matters. If you call it as "xlf", it uses fixed format by default. If you call it xlf90 or xlf95, it uses free format. You can change this by using the flag -qfixed or -qfree to specify the format. In most configurations the xlf compiler expects files to have a .f suffix. If you need to compile files with a .f90 suffix, one way is to specify the flag -qsuffix=f=f90 on the command line. -- Dave Seaman Oral Arguments in Mumia Abu-Jamal Case to be heard May 17 U.S. Court of Appeals, Third Circuit <http://mumia2000.org/>
|
 |
 |
 |
 |
|