I want to use some built in matlab functions in Fortran, so to start with it I tried using example code fengdemo.f from matlab
I tried compiling code and it gave me following errors
NGOPEN@8
test.for.obj : error LNK2001: unresolved external symbol _MXCREATEDOUBLEMATRIX@12
test.for.obj : error LNK2001: unresolved external symbol _MXGETPR@4
test.for.obj : error LNK2001: unresolved external symbol _MXCOPYREAL8TOPTR@12
test.for.obj : error LNK2001: unresolved external symbol _ENGPUTVARIABLE@16
test.for.obj : error LNK2001: unresolved external symbol _ENGEVALSTRING@12
test.for.obj : error LNK2001: unresolved external symbol _ENGGETVARIABLE@12
test.for.obj : error LNK2001: unresolved external symbol _MXCOPYPTRTOREAL8@12
test.for.obj : error LNK2001: unresolved external symbol _MXDESTROYARRAY@4
test.for.obj : error LNK2001: unresolved external symbol _ENGCLOSE@4
Debug/test.for.exe : fatal error LNK1120: 10 unresolved externals
how shall I link these lib or dll to fortran codes
Thanks
Prashant
I tried compiling code and it gave me following errors
NGOPEN@8
test.for.obj : error LNK2001: unresolved external symbol _MXCREATEDOUBLEMATRIX@12
test.for.obj : error LNK2001: unresolved external symbol _MXGETPR@4
test.for.obj : error LNK2001: unresolved external symbol _MXCOPYREAL8TOPTR@12
test.for.obj : error LNK2001: unresolved external symbol _ENGPUTVARIABLE@16
test.for.obj : error LNK2001: unresolved external symbol _ENGEVALSTRING@12
test.for.obj : error LNK2001: unresolved external symbol _ENGGETVARIABLE@12
test.for.obj : error LNK2001: unresolved external symbol _MXCOPYPTRTOREAL8@12
test.for.obj : error LNK2001: unresolved external symbol _MXDESTROYARRAY@4
test.for.obj : error LNK2001: unresolved external symbol _ENGCLOSE@4
Debug/test.for.exe : fatal error LNK1120: 10 unresolved externals
how shall I link these lib or dll to fortran codes
Thanks
Prashant