编译没有问题,错误如图:
错误原因:
http://stackoverflow.com/questio ... ation-not-permitted
gcc4.6以后对于ld自动加上了as-needed选项。所以编译选项应该变成:
g++ -Wl,--no-as-needed -std=c++11 -pthread a.cpp
编译没有问题,错误如图:
错误原因:
http://stackoverflow.com/questio ... ation-not-permitted
gcc4.6以后对于ld自动加上了as-needed选项。所以编译选项应该变成:
g++ -Wl,--no-as-needed -std=c++11 -pthread a.cpp