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.
コンパイル フラグに応じて、コードを条件付きでスタティック ライブラリにリンクしたいと考えています。
とにかくC++でそれを行うことができますか?
プラグマを使用してそれを行うことができます:
#ifdef YOUR_CONDITION #pragma comment (lib, "YourLibrary.lib") #endif