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 

How to link a subsoutine to main porgram

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



Joined: 18 Feb 2006
Posts: 5

PostPosted: Sun Feb 19, 2006 11:25 am    Post subject: How to link a subsoutine to main porgram Reply with quote

Hello anyone
I am a new programmeing user. i did open a new project which contains two f90 files. One is main program while another one is a subroutine procedure. After i compiler it, output showed that two files have no errors. However, i cant build an executable file when i want to build it. The output dialog said that the target doesnt exist. What is going wrong with this?
Do i need to set something in link option ? If no, can anyone tell me how to use subroutine in a program unit in plato3 ? :confused:
Best Regard
THANK YOU

FOON
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Feb 21, 2006 1:12 am    Post subject: How to link a subsoutine to main porgram Reply with quote

There are two immediate possibilities.

1) Create a project in Plato and add the two files to the project. Then build the project, or

2) Compile the two files separately and then use SLINK on a command line...

SLINK
lo main.obj
lo sub.obj
file

The name of the files could be main.f90 and sub.f90 for example.

Details of both approaches can be found in FTN95.chm.
Back to top
View user's profile Send private message
Foon



Joined: 18 Feb 2006
Posts: 5

PostPosted: Tue Feb 21, 2006 3:53 am    Post subject: How to link a subsoutine to main porgram Reply with quote

Thanks a lot
It is fixed.
i can link two files by using the slink, thank Mr paul laidler.
Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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