LoginSignup
1
0

libboost_filesystem-vc143-mt-sgd-x64-1_84.lib を開くことができません。

Posted at

libboost_filesystem-vc143-mt-sgd-x64-1_84.lib を開くことができません。
というコンパイルエラーが出て詰まったのですがなぜか解決したので備忘メモ。

boostをDL(https://www.boost.org/)して任意のディレクトリに解凍。

cd C:\Program Files\boost\boost_1_84_0
./bootstrap.bat
./b2.exe variant=debug runtime-debugging=on runtime-link=static threading=multi

でboost_1_84_0\stage\libにlibboost_filesystem-vc143-mt-sgd-x64-1_84.libが生成された。

※./b2.exe をオプション無しで実行すると
 libboost_filesystem-vc143-mt-gd-x64-1_84.lib
 が生成されるだけだった。sはstaticのsか?

その後、リンカを追加してコンパイルすれば解決した。VSの場合、
構成プロパティ > リンカ― > 全般 > 追加のライブラリ ディレクトリ > "C:\Program Files\boost\boost_1_84_0\stage\lib" を追加する。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0