Silverfrost Forums

Welcome to our forums

How to link a subsoutine to main porgram

19 Feb 2006 10:25 #541

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 ? 😕 Best Regard THANK YOU

FOON

21 Feb 2006 12:12 #543

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.

21 Feb 2006 2:53 #544

Thanks a lot It is fixed. i can link two files by using the slink, thank Mr paul laidler. 😃

Please login to reply.