- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a project in mix languages C++ and Fortran. The C++ works fine. However trying to link the fortran subroutine with the Visual C++ does not work. It worked fine on the previous compilers (Visual 2003 and Fortran Intel 9.0)
I am getting the following:
1>LINK : warning LNK4076: invalid incremental status file '.\Debug/M1.ilk'; linking nonincrementally
1>GlobalRun.obj : error LNK2019: unresolved external symbol _COMPOUND referenced in function "protected: virtual void __thiscall CGlobalRun::OnOK(void)" (?OnOK@CGlobalRun@@MAEXXZ)
1>.\Debug/M1.exe : fatal error LNK1120: 1 unresolved externals1>Build log was saved at "file://c:\Users\Ora\Documents\Visual Studio 2008\Projects\Copy of MSEW(3.0)\Debug\BuildLog.htm"
1>MSEW - 2 error(s), 1 warning(s)
I do not know how to resolve it.
I am getting the following:
1>LINK : warning LNK4076: invalid incremental status file '.\Debug/M1.ilk'; linking nonincrementally
1>GlobalRun.obj : error LNK2019: unresolved external symbol _COMPOUND referenced in function "protected: virtual void __thiscall CGlobalRun::OnOK(void)" (?OnOK@CGlobalRun@@MAEXXZ)
1>.\Debug/M1.exe : fatal error LNK1120: 1 unresolved externals1>Build log was saved at "file://c:\Users\Ora\Documents\Visual Studio 2008\Projects\Copy of MSEW(3.0)\Debug\BuildLog.htm"
1>MSEW - 2 error(s), 1 warning(s)
I do not know how to resolve it.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right click on the C++ project and select Dependencies. Check the box for the Fortran project to make it a dependent.

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