Link error with C++ code with Intel fortran code.
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
I had installed the Intel fortran in my PC. I had created the Test.F90 (fortran code) SUBROUTINE GetNum (num, unit) REAL*8 num,unit unit = num+10 RETURN END I had created the c++ code in Microsft Visual studio 2005. #include<iostream> using namespace std; extern "C" { __declspec(dllimport) void _stdcall GetNum(double&,double&); } void main() { cout << "Hi MalliKARJUN" << endl; double a,b; a=10.0; b=0.0; GetNum(a,b); } I had added the fortan dependencis project with the above c++ project . Above c++ project compile successfullly but it gives following errro while we build the code error LNK2019: unresolved external symbol __imp__GetNum@8 referenced in function _main Kindly help me out to resolve this issue