View previous topic :: View next topic |
Author |
Message |
Foon
Joined: 18 Feb 2006 Posts: 5
|
Posted: Sun Feb 19, 2006 11:25 am Post subject: How to link a subsoutine to main porgram |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Feb 21, 2006 1:12 am Post subject: How to link a subsoutine to main porgram |
|
|
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 |
|
|
Foon
Joined: 18 Feb 2006 Posts: 5
|
Posted: Tue Feb 21, 2006 3:53 am Post subject: How to link a subsoutine to main porgram |
|
|
Thanks a lot
It is fixed.
i can link two files by using the slink, thank Mr paul laidler.
|
|
Back to top |
|
|
|