forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Strange response to /OPTIONS compiler option

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
RainerEngel



Joined: 28 Nov 2006
Posts: 1

PostPosted: Tue Nov 28, 2006 3:05 am    Post subject: Strange response to /OPTIONS compiler option Reply with quote

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
View user's profile Send private message
Vladimir



Joined: 22 Nov 2006
Posts: 11

PostPosted: Tue Nov 28, 2006 3:37 am    Post subject: Strange response to /OPTIONS compiler option Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Tue Nov 28, 2006 8:38 am    Post subject: Strange response to /OPTIONS compiler option Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group