Intel compiler non-linkable object file

1 回表示 (過去 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 Center および File ExchangeWrite 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