Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Matlab & Compiler

Scarpina__Salvatore
686 Views

Dear all,

I'm trying to compile c++ code in Matlab (in Windows) using mex function and ICC compiler.

Currently configuration is fine, mex invokes icc correctly and code is compiled and linked without problem, unless I try to introduce the option /ipo which generates the following errors:

 

<sourcefile.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

 

I'd the impression, reading over internet, that it could be a problem related to linker, not correctly configured or invoked (maybe I'm not invoking intel linker?).

Any idea?


Thank you
Salvatore

0 Kudos
1 Reply
Viet_H_Intel
Moderator
686 Views

Please use icl  /ipo to link.

0 Kudos
Reply