Dear all,

I have been got stuck in a linking problem for my c++ program with gcc on Mac OS Tiger, it happens when I need to use shared libraries. For example, when I use matlab engine in the program, the compiling is ok, but the liking will give error as:

  -ld: undefined symbol: ..........
 _engClose
.....
  /usr/bin/libtool: internal link edit command failed

  I have included the necessary path during linking: eg

g++ -L/Applications/MATLAB_SV74/bin/maci -L/Applications/ MATLAB_SV74/bin/maci -dynamiclib -o engdemo.o ...

and I use nm which shows, eg, _engClose is in the library libeng.dylib, which is under the matlabroot/bin/maci path

Besides, I also set the DYLD_LIBRARY_PATH to include these library paths.......

and I dun think it is related to matlab issue, because in another program using vtk, it also give "undefined symbol" error during linking..

I've checked a lot, seems there are similar situations reported, but I still can not find a solution to it.. Can anyone help?

  Thanks very much

  Linwei


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to