Linker error LNK1104 with 'libboost_filesystem-vc100-mt-s-1_49.lib'

前端 未结 5 1844
我寻月下人不归
我寻月下人不归 2020-12-12 22:34

During the process of linking my program to the boost::filesystem module in release mode I get the next error:

error LNK1104: cannot open file \'libboost

5条回答
  •  我在风中等你
    2020-12-12 23:10

    I had a similar problem with a recent project (inherited from a long legacy).

    Here is a "poor man's" solution to this issue:

    Rebuild the boost libraries with all variants, to be sure that you have the correct variant for your needs.

    Run:

    .\b2 --build-type=complete
    

    Note that the boost build time will obviously be longer with this option.

    This is not an elegant solution, but I didn't have time to mess about figuring out which exact option I needed for my project, so I just built them all.

提交回复
热议问题