g++ including boost library

给你一囗甜甜゛ 提交于 2019-12-04 05:23:37

Move the -lboost_thread-mgw45-mt-1_46 option to the end of the command line (after try1.cpp). (From chat.)

adding #define BOOST_THREAD_USE_LIB at the beginning works.

Remember to link also boost libs listed in the errors (boost system in my case).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!