编译时报:
/usr/bin/ld: /tmp/cc87vPxL.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
解决:
编译时添加 -pthread
编译时报:
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options
解决:
编译时添加 -std=c++11