s****d 发帖数: 5 | 1 Hi, I am struggling with c++ linking problem in Linux...
The C++ code has MATLAB engine inside, and it has no problem when compiling
under Windows(same MATLAB version, MATLAB 6.5R13), but it can not be compiled
with Linux, I always get the following error:
/usr/bin/ld: warning: libstdc++-libc6.1-2.so.3, needed by /s2bin/matlabR13/bin
/glnx86/libmx.so, not found (try using -rpath or -rpath-link)
/s2bin/matlabR13/bin/glnx86/libmx.so: undefined reference to `__throw'
collect2: ld returned 1 exit s | g****c 发帖数: 299 | 2 need C++ lib libstdc++-libc6.1-2.so.3
LIBS = -L$(MATLAB)/bin/glnx86/libmx.so -L$(MATLAB)/extern/lib/glnx86 \
-L$(MATLAB)/ sys/os/glnx86/ -lut -lmx -leng -lmex -lmat
compiled
bin
【在 s****d 的大作中提到】 : Hi, I am struggling with c++ linking problem in Linux... : The C++ code has MATLAB engine inside, and it has no problem when compiling : under Windows(same MATLAB version, MATLAB 6.5R13), but it can not be compiled : with Linux, I always get the following error: : /usr/bin/ld: warning: libstdc++-libc6.1-2.so.3, needed by /s2bin/matlabR13/bin : /glnx86/libmx.so, not found (try using -rpath or -rpath-link) : /s2bin/matlabR13/bin/glnx86/libmx.so: undefined reference to `__throw' : collect2: ld returned 1 exit s
|
|