Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Visual Studio を使用すると、「特定のライブラリを無視」することができます ([プロジェクト プロパティ] > [構成プロパティ] > [リンカー] > [入力] > [特定のライブラリを無視])。
これはプロジェクトで役立つことがわかりました。次に、boost-build (bjam) を使用してそのプロジェクトをビルドしたいのですが、リンカーの動作を再現する必要があります。
bjam でライブラリを無視する機能はありますか?
コマンドラインで設定できます
bjam linkflags=/NODEFAULTLIB:xxx
または、jamfile 内から
<linkflags>/NODEFAULTLIB:xxx
または、コード自体で Visual Studio のプラグマ コメント機能を使用します。
#pragma comment(linker, "/NODEFAULTLIB:xxx")