Write a simple boost test program, the following error when compiling:
g++ -std=c++11 test_ssl.cpp -o test -lboost_system -lboost_thread
/usr/bin/ld: /tmp/ccHdMo8P.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
In fact, the additional direct the appropriate library file.
g++ -std=c++11 test_ssl.cpp -o test -lboost_system -lpthread