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

前端 未结 5 1843
我寻月下人不归
我寻月下人不归 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 22:55

    You are using /MT or /MTd option in C/C++/Code Generation/Runtime Library which require static library, boost default build with shared library output. You can switch Runtime Library to /MD or /MDd. An other option is recompile boost with static library output and you'll get 'libboost_filesystem-vc100-mt-s-1_49.lib'..

提交回复
热议问题