Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
54 Views

Matlab & Compiler

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
Highlighted
Moderator
54 Views

Please use icl  /ipo to link.

0 Kudos