PDA

View Full Version : winteractor lf7.1 visual studio subroutine linking


Cynthia
02-18-2006, 12:37 AM
How do I call a subroutine in one .f90 file that exists in another .f90 file ? using lf7.1 & Visual Studio


the .f90 file has been added to the project but I get an "unresolved external" on the call.
I probably would like to do this with other apps like web or windows too..


Cynthia

Lahey Support
03-20-2006, 11:23 PM
In a single Fortran project whey you add the source file that contains the subroutine to the project the other file(s) of the project should be able to use the subroutine. The link error may be caused by the two references to the subroutine having different argument lists. The .NET compiler is case sensitive, which can cause this kind of problem.

If you continue to have problems please post a short and simple Visual Studio solution that demonstrates the problem.