Compiling C++ source file using Boost.Thread

后端 未结 5 856
情歌与酒
情歌与酒 2021-01-18 04:51

I am trying to learn how to use the C++ Boost.Thread library. I have installed the Boost libraries on my Ubuntu 11.10 system. I am following the book \"The Boost C++ Librar

5条回答
  •  灰色年华
    2021-01-18 05:49

    I commented above, but wanted to share the full command line here.

    g++ -std=c++11 thread_example.cpp -lboost_thread -lboost_system

    [I'm using thread_example.cpp as the source filename; please replace with your own]

提交回复
热议问题