Boost linkage error in Eclipse

前端 未结 2 584
滥情空心
滥情空心 2021-01-07 08:20

I\'ve been banging my head fruitlessly against the wall attempting to include boost\'s thread functionality in my Eclipse C++ project on Ubuntu.

Steps so far:

<
相关标签:
2条回答
  • 2021-01-07 08:34

    Your linker line should be saying -lboost_thread-gcc43-mt-1_38.

    0 讨论(0)
  • 2021-01-07 08:53

    Well, the linker tries to find a library called "libboost_thread.a" (or "libboost_thread.so") in its search path, which you apparently don't have. Either create an appropriate link, or use "-lboost_thread-gcc43-mt"

    0 讨论(0)
提交回复
热议问题