|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
哪位大神帮我看看:g++ 编译静态库文件时出现multiple definition of `__dso_handle'错误
, z, M- _% t( f4 u: o( U1 w: j
6 Z# w$ C& O7 J% o
+ T9 [" Q: P6 n- o编译指令:g++ -std=c++11 -o watermark watermarktest_1.cpp xxxx.a -I /root/program/cv_release/include/opencv2
2 D. V: E5 h; N9 T: A. e% z J2 g: G错误提示:xxxx.a(xxx.o): (.rodata+0x389600): multiple definition of `__dso_handle'
/ y/ M3 |6 H4 C1 j, L. S' o0 o/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o: (.rodata+0x0): first defined here" Y7 z+ w& r3 o Y% K
/usr/bin/ld: error in xxxx.a(xxx.o)(.eh_frame); no .eh_frame_hdr table will be created.9 o F6 e! t' w1 \
/tmp/ccHJNWbQ.o: In function `main':; ?5 b. M$ L* q3 |
watermarktest_1.cpp: (.text+0x985): undefined reference to `cv::imread(cv::String const&, int)'
7 U/ V( j( o3 n& K9 Z; g( rcollect2: error: ld returned 1 exit status; {2 D, x. R6 x# }" r4 n/ d( ~
|
|