avatar
c++ linking problem# Programming - 葵花宝典
s*d
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
avatar
g*c
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。