View previous topic :: View next topic |
Author |
Message |
JamesHathcock
Joined: 01 Nov 2004 Posts: 1
|
Posted: Mon Nov 01, 2004 11:54 am Post subject: Help! Transition from G77 to FTN95 (Newbie) |
|
|
I have lots of code written with G77 (GNU), but have one module I need to add that is written in F90. I thought FTN95 would be a great way to do this. Currently many of my subroutines are in seperate *.FOR files; I have the *.FOR code and the G77-compiled *.OBJ files.
1: In G77, the compiler automatically searched all the object files (*.OBJ) in the currect directory for subroutines called for by the main program I was trying to compile. FTN95 does not appear to do this, or at least not so simply. In FTN95, can I have some files containing only subroutines in them and then call from the main program?
THANKS!!!!!
James |
|
Back to top |
|
|
silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Mon Nov 01, 2004 3:39 pm Post subject: Help! Transition from G77 to FTN95 (Newbie) |
|
|
You can use wild cards on the command line. For example:
ftn95 *.for /check
To link the object files together you will need to issue a slink command. The easiest way is to use an input file. For example to link three objects together you could create a file called link3.inf:
Code: |
lo file1
lo file2
lo file3
file myexe
|
and then use:
slink link3.inf
Slink is documented in the online help in Win32 platform->Using the linker.
------------
Administrator
Silverfrost Forums |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Mon Nov 01, 2004 6:29 pm Post subject: Help! Transition from G77 to FTN95 (Newbie) |
|
|
Thanks very much. It's Working! |
|
Back to top |
|
|
|