osx - Link error when compile mex files -


i running mex under matlab r2011a in os x 10.8. compiling process ok. come link errors. command line used in matlab command window is:

mex -i/usr/include/ -l/usr/lib/ -o -ddebug -dfastplog calcentropyscalesopt.c  hists.c 

the original command line runs in ms windows

mex -o -ddebug -dfastplog calcentropyscalesopt.c  hists.c 

i add -i , -l options fix errors. link errors still exist:

undefined symbols architecture x86_64: "_mxcreatedoublematrix_700", referenced from:   _do_calcsalscale1daa in calcentropyscalesopt.o   _do_calcsalscale3d in calcentropyscalesopt.o   _do_calcsalscale2d in calcentropyscalesopt.o   _do_calcsalscale1dparzen in calcentropyscalesopt.o   _do_calcsalscale1d in calcentropyscalesopt.o "_mxcreatenumericarray_700", referenced from:   _aacirclepix in calcentropyscalesopt.o   _circlepix2 in calcentropyscalesopt.o ... many more ... ld: symbol(s) not found architecture x86_64 collect2: ld returned 1 exit status  mex: link of ' "calcentropyscalesopt.mexmaci64"' failed. 

i think need more -l or -l options, don't know write there.

thanks.

regards, richard

fixed.

the library needed mx (libmx.dylib). under matlabroot/bin/maci64 , ok. there false symbolic link in /usr/lib. linker linked file, points libsystem.dylib. removed link , goes well.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -