Using compiled matlab compiled code in c++ program

by raulzito234

After compiling the code I found the following error when I ran:

>> make


The problem listed was the following:

Undefined symbols for architecture x86_64:
“_mlfSegmentImage”, referenced from:
_main in KinectVideoHandler-KFLNAR.o
“_mxCreateString_proxy”, referenced from:
_main in KinectVideoHandler-KFLNAR.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [KinectVideoHandler] Error 1


Apparently (according to description here the problem is the following:

1) The object is present but the linker doesn’t look for
it in the right place.

2) The object is not present, because the matlab system
is set up to work with a 32-bit compiler.

3) The object is not present because the compiler doesn’t
support architecture

Advertisements