- 论坛徽章:
- 0
|
- /usr/bin/ld: warning: libstdc++.so.5, needed by ../lib/libIce.so, may conflict with libstdc++.so.6
- /usr/bin/ld: ../lib/libSDMICore.a(Core.o): undefined reference to symbol 'std::__default_alloc_template<true, 0>::allocate(unsigned int)@@GLIBCPP_3.2'
- /usr/bin/ld: note: 'std::__default_alloc_template<true, 0>::allocate(unsigned int)@@GLIBCPP_3.2' is defined in DSO /lib/libstdc++.so.5 so try adding it to the linker command line
- /lib/libstdc++.so.5: could not read symbols: Invalid operation
- collect2: ld returned 1 exit status
- make: *** [../bin/idsagent] Error 1
复制代码 编译时候在连接的时候遇到这种问题。
而且在/lib/下 和/usr/lib/下 均有 这两个库
- []$ cd /lib
- []$ ls -l libstd*
- lrwxrwxrwx 1 root root 18 Oct 19 12:34 libstdc++.so.5 -> libstdc++.so.5.0.3
- -rwxr-xr-x 1 root root 710608 Aug 15 14:15 libstdc++.so.5.0.3
- lrwxrwxrwx 1 root root 19 Oct 19 12:59 libstdc++.so.6 -> libstdc++.so.6.0.16
- -rwxr-xr-x 1 root root 948524 Oct 19 12:59 libstdc++.so.6.0.16
复制代码 弄了一上午了。 也没解决
我认为是。 libIce.so库 需要libstdc++.so.5 但是可能其他库已经连接了libstdc++.so.6
才导致冲突的。 我也是猜测的。 各位帮忙解决一下吧。 |
|