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?).