g++ 编译静态库文件时出现multiple definition of `__dso_handle'错误,请大神指点如何修改。
编译指令:g++ -std=c++11 -o watermark watermarktest_1.cpp xxxx.a -I /root/program/cv_release/include/opencv2
错误提示:xxxx.a(xxx.o):(.rodata+0x389600): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o:(.rodata+0x0): first defined here
/usr/bin/ld: error in xxxx.a(xxx.o)(.eh_frame); no .eh_frame_hdr table will be created.
/tmp/ccHJNWbQ.o: In function `main':
watermarktest_1.cpp:(.text+0x985): undefined reference to `cv::imread(cv::String const&, int)'
collect2: error: ld returned 1 exit status