View previous topic :: View next topic |
Author |
Message |
RainerEngel
Joined: 28 Nov 2006 Posts: 1
|
Posted: Tue Nov 28, 2006 3:05 am Post subject: Strange response to /OPTIONS compiler option |
|
|
Hello!
When compiling a Fortran source code using FTN95 v.4.90 personal, the compiler options only work when typed on the command line.
As soon as I use /options <file> to make the compiler take the options from the given file, an error message 'More than one source file specified' is output.
When I specify exactly the same compiler options as contained in the <file> on the command line, the compiler performs perfectly well.
ftn95 test.for /fixed_format /dreal
--> compilation without any errors
ftn95 test.for /options deb.opt
--> More than one source file specified
Contents of deb.opt: /fixed_format /dreal
Can anybody help me ?
Rainer Engel |
|
Back to top |
|
|
Vladimir
Joined: 22 Nov 2006 Posts: 11
|
Posted: Tue Nov 28, 2006 3:37 am Post subject: Strange response to /OPTIONS compiler option |
|
|
Compiler options should be listed in the file named ftn95.cfg located in your project's directory. It must contain all options you need typed like this:
/ERRORLOG
/LGO
/OPTIMISE
/PENTIUM
You don't have to use the name of this file calling ftn95, it reads configuration file automatically, by default. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Nov 28, 2006 8:38 am Post subject: Strange response to /OPTIONS compiler option |
|
|
Rainer
This works OK for me.
Perhaps you have some extra characters in deb.opt that FTN95 is trying to interprete as an extra source file.
|
|
Back to top |
|
|
|