由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - c++ linking problem
相关主题
Matlab + R: R-Link, RMatlab, or others?调用win32 DLL的问题
请教一个MS Linked List的问题请问C++标准
exe file compild by C++ cannot be run by another computer问几个C++的题
one more c++ questionhow to let c++ program have access to relative path at run time?
C++编译的问题设计一个string class,是应该用linked list还是array?
Really Stupid Question: How to run VC++ 2008 Express (转载)Visual C++ Express 很土的问题求救
一个奇怪的library linking问题(c++, boost.python, shared li (转载)pyQT的性能
VC2005 C++ link error helpVC++: Module-Definition (.def) Files:
相关话题的讨论汇总
话题: matlab话题: c++话题: glnx86话题: bin话题: linking
进入Programming版参与讨论
1 (共1页)
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

1 (共1页)
进入Programming版参与讨论
相关主题
VC++: Module-Definition (.def) Files:C++编译的问题
【C++算法求助】有个O(n*n)的算法不知道该怎么优化并且并行化计算Really Stupid Question: How to run VC++ 2008 Express (转载)
为什么Cache LRU多用doubly linked list而不是single linked list来实现呢?一个奇怪的library linking问题(c++, boost.python, shared li (转载)
怎么将linked list 存储到文件中去呀VC2005 C++ link error help
Matlab + R: R-Link, RMatlab, or others?调用win32 DLL的问题
请教一个MS Linked List的问题请问C++标准
exe file compild by C++ cannot be run by another computer问几个C++的题
one more c++ questionhow to let c++ program have access to relative path at run time?
相关话题的讨论汇总
话题: matlab话题: c++话题: glnx86话题: bin话题: linking