Intel compiler non-linkable object file

조회 수: 2 (최근 30일)
Salvatore Scarpina
Salvatore Scarpina 2019년 7월 2일
Dear all,
I'm using MEX to compile some C++ code and use it in my Matlab Code, under Windows platform: I've configured matlab mex to use Intel compiler (ICC) and it works fine unless I try to use /ipo option. In that case, in fact, I obtain the following error:
<source>.obj : warning LNK4229: invalid directive '/Intel(R) compiler non-linkable IL object file' encountered; ignored
cpp_mexapi_version.obj : warning LNK4229: invalid directive '/Intel(R) compiler non-linkable IL object file' encountered; ignored
LINK : error LNK2001: unresolved external symbol mexFunction
LINK : error LNK2001: unresolved external symbol mexfilerequiredapiversion
In my interpretation, this should be related somehow to the need to invoke intel linker instead of "standard" linker, but I was not able to find any indication about how to do it.
Any ideas?
Tnx!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by