Intel compiler non-linkable object file

1 view (last 30 days)
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!

Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!