Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran in C++

oraadamahotmail_com
780 Views
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.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
780 Views

Right click on the C++ project and select Dependencies. Check the box for the Fortran project to make it a dependent.
0 Kudos
Reply