Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using matlab built in functions in FORTRAN

Status
Not open for further replies.

ticktoc

Programmer
Jan 3, 2011
1
US
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 think your best bet would be to ask on the The MathWorks' forums -- they tend to know this stuff, and you should get responses from their staff.

--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top