|
On May 23, 10:28 am, "Stiphu " <schm...@pyl.unibe.ch> wrote:
> Hi there
>
> I programmed a camera interface in CLR and want to implement it now into a MEX function. That works fine, I can compile it and call it from Matlab. But as far as I call a mex function as
>
> mexPrintf("hello world \n");
>
> for instance, I get linker errors:
>
> 1>mexFunction.obj : error LNK2028: unresolved token (0A0003CA) "extern "C" int __cdecl mexPrintf(char const *,...)" (?mexPrintf@@$$J0YAHPEBDZZ) referenced in function "extern "C" void __cdecl mexFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag const * * const)" (?mexFunction@@$$J0YAXHQEAPEAUmxArray_tag@@HQEAPEBU1@@Z)
> 1>mexFunction.obj : error LNK2019: unresolved external symbol "extern "C" int __cdecl mexPrintf(char const *,...)" (?mexPrintf@@$$J0YAHPEBDZZ) referenced in function "extern "C" void __cdecl mexFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag const * * const)" (?mexFunction@@$$J0YAXHQEAPEAUmxArray_tag@@HQEAPEBU1@@Z)
>
> Any suggestions how to get around that?
Install your compiler / linker combo correctly.
Or, equivalently, configure it correctly for use
with MEX.
Rune
|