- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have created a main program and a subroutine written in fortran and encountered linking problem when "rebuild all" in the Compaq Visual Fortran 6. The two programs are in the same workspace: main program created using "Fortran Console Application" under Project and subroutine created unsing "Fortran Free Format SourceFile" under Files.A "CALL" instruction is use to execute theSubroutine in main program. Below show the problem encountered:
--------------------Configuration: TEST8 - Win32 Debug--------------------
Compiling Fortran...
C:FORTRANFortran PracticeTest8TEST8TESTSUB1.F90
C:FORTRANFortran PracticeTest8TEST8TEST8.f90
Linking...
TEST8.obj : error LNK2001: unresolved external symbol _TEST_SUB1@0
Debug/TEST8.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
TEST8.exe - 2 error(s), 0 warning(s)
I amappreciate if anyone could help me solve the problem. Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page