How to link to dynamic boost libs?

后端 未结 3 1209
陌清茗
陌清茗 2020-11-28 06:46

I compiled boost lib and got these.

//Shared/dynamic link libraries

24/03/2010  11:25 PM            53,248 boost_thread-vc80-mt-1_42.dll
24/03/2010  11:25          


        
3条回答
  •  执笔经年
    2020-11-28 07:04

    To configure boost use the user config header

    
    

    Then just look for the dynamic link lines and change to your desired configuration

    // BOOST_ALL_DYN_LINK: Forces all libraries that have separate source, 
    // to be linked as DLL's rather than static libraries on Microsoft Windows 
    // (this macro is used to turn on __declspec(dllimport) modifiers, so that 
    // the compiler knows which symbols to look for in a DLL rather than in a 
    // static library).  Note that there may be some libraries that can only 
    // be statically linked (Boost.Test for example) and others which may only 
    // be dynamically linked (Boost.Threads for example), in these cases this 
    // macro has no effect.
    // #define BOOST_ALL_DYN_LINK
    

提交回复
热议问题