ubuntu14.04上遇到此问题,编译选项加:
-pthread -std=c++11 -Wl,--no-as-needed
亲测有效,其他的说法如只加 -pthread -std=c++11没效果
本文提供了一种在Ubuntu14.04上解决特定编译问题的有效方法,通过添加编译选项'-pthread-std=c++11-Wl,--no-as-needed',解决了仅使用'-pthread-std=c++11'无法解决的问题。
ubuntu14.04上遇到此问题,编译选项加:
-pthread -std=c++11 -Wl,--no-as-needed
亲测有效,其他的说法如只加 -pthread -std=c++11没效果
359
1486
555

被折叠的 条评论
为什么被折叠?