I installed the boost package from cygwin and have a directory /usr/include/boost that includes a bunch of *.hpp files, including thread.hpp, which I need to include in the c++ file, via
Also, several *.a files seem to be related to boost::thread.
$ ls /usr/lib/libboost_thread* -1
What should my g++ compilation command look like? I understand I should be using some combination of -L -I, and -l, but I'm not sure what to supply for each argument, and nothing is working for me so far.
I have tried the following:
$ g++ test.cpp -lboost_thread-gcc-mt
0Ev[boost::detail::thread_data<void (*)()>::~thread_data()]+0x16): undefined reference to `boost::detail::thre
EDIT (removed -gcc part):
g++ sample.cpp -lboost_thread-mt. You may need to add
-pthread as well. If still no luck, please post the errors you get. HTH