Boost::system link error on Ubuntu

前端 未结 2 1632
星月不相逢
星月不相逢 2021-01-15 19:08

I\'m trying to compile the following c++ code that implements Context Tree Switching (More info on the download page):

Zip archive, 0.2 MB

which requires so

2条回答
  •  [愿得一人]
    2021-01-15 19:32

    You need to (just like n.m earlier wrote) make sure you have the correct order of the linking. Basically some implementations care about what order you link object but also libraries.

    If you link a library that hasnt yet been referenced by previous code it will be discarded. I remember coming up with a solution to hack in different (versions of) libraries in a program by referencing the same symbol but in an object linked after the first one and then re-link another library version:

    -lyourprojwantingv1 -llibraryofv1 -lyourprojwantingv2 -llibraryofv2
    

    Personally i think this is all just madness! (All of it!)

提交回复
热议问题