Undefined reference to 'boost::system::generic_category()'?

前端 未结 4 1913
执笔经年
执笔经年 2020-12-10 16:23

it seems that i am unable to see the obvious. I wanted to use some Boost library features for my project and know i am getting these nice errors all of a sudden:

4条回答
  •  青春惊慌失措
    2020-12-10 16:38

    Ok, for those interested, the answer of Mark Garcia was a good call but what's more important here is that you need to explicitly link the libs you want from boost like

    TARGET_LINK_LIBRARIES(ATFOR ${OpenCV_LIBS} curl ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})

    All other options i tried and read about didn't work me, don't know why but i hope this helps someone.

提交回复
热议问题