Silverfrost Forums

Welcome to our forums

Strange response to /OPTIONS compiler option

28 Nov 2006 2:05 #1329

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

28 Nov 2006 2:37 #1330

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.

28 Nov 2006 7:38 #1334

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.

Please login to reply.