何解?-static-libstdc++ 改成 -lstdc++ 就出的问题
./NetCenter_Service: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./NetCenter_Service)
./NetCenter_Service: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ../NetCenter_Release/NetEngine_Core/Bin/libNetEngine_ManagePool.so)
./NetCenter_Service: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ../NetCenter_Release/NetEngine_WorkLogic/Bin/libNetLogic_DetachLayer.so)
./NetCenter_Service: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ../NetCenter_Release/NetEngine_Alarm/Bin/libNetEngine_Alarm.so)
./NetCenter_Service: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ../NetCenter_Release/NetEngine_WorkLogic/Bin/libNetLogic_MemoryTable.so)
怪事 ,我明明重新编译 为啥还会出这个问题?
CentOS 5.4
G++4.6.4
------解决方案--------------------为什么要显式增加C++标准库的链接呢?
------解决方案--------------------你写个小的C++代码编译测试一下,看是否还存在同样类似的问题。
如果代码量不大,发给我,帮你编下看看,
。