From: Musef Hlou on
Hi, I really hope I will get an answer to this thread.

I'm trying to port a C++ function for an image based object segmentation written and compiled on a fedora linux system, a mex-file was created and run successfully on matlab.
Now when trying to create a mex-file for a Mac based OSX 10.5 (intel based) with Matlab (7.9 / 64-bit - maci64) I get the following error:

ld: warning in /Applications/MATLAB_R2009b.app/extern/lib/maci64/mexFunction.map, file is not of required architecture
ld: in /Applications/MATLAB_R2009b.app/bin/maci64, can't map file, errno=22
collect2: ld returned 1 exit status
make[2]: *** [mex_category_db.mexmaci64] Error 1
make[1]: *** [recognition/] Error 2
make: *** [matlab] Error 2

I hope someone can help on this as I can't figure out what is the problem on this error and what required architecture is mentioned in here, is it related to Matlab architecture, OS architecture, or the compiler architecture?

Many Thanks