mex fortran code containing intrinsic function using Intel fortran compiler
Ältere Kommentare anzeigen
Hi,
I'm trying to mex a fortran code using the Intel Parallel studio XE 2019 with microsoft visual studio 2015 compiler. My fortran code calls intrinsic functions cosd, sind, and atand. However, the linker keeps complaining that these are unresolved external symbols. Are there libraries that I need to link in during the mex that will define these intrinsic functions? Thanks.
Error using mex
Creating library rcssig.lib and object rcssig.exp
read_reftab.obj : error LNK2019: unresolved external symbol COSD referenced in
function READ_REFTAB
body_to_range.obj : error LNK2001: unresolved external symbol COSD
Akzeptierte Antwort
Weitere Antworten (1)
James Tursa
am 24 Sep. 2019
Bearbeitet: James Tursa
am 24 Sep. 2019
0 Stimmen
Can you post the offending code? Maybe you are calling it with a non-real argument and the compiler is complaining that it can't find a specific function for your specific argument type.
How are you doing the compiling and linking? With the mex command, or building from within the Visual Studio environment?
1 Kommentar
Duy Nguyen
am 24 Sep. 2019
Kategorien
Mehr zu Fortran with MATLAB finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!