How to link to dynamic boost libs?

后端 未结 3 1207
陌清茗
陌清茗 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:20

    1. The .lib files are linked statically, while .dll files are linked dynamically. I believe it's a VC project setting.

    The "lib" prefix is for static libraries. Use link=static 
    The 's' letter is to static linking to runtime. Use runtime-link=static 
    The 'd' is debug, use variant=debug 
    The 'g' is using debug runtime, I think it's included in 'debug' variant 
    already. If not runtime-debugging=on will help. 
    

    Source: http://old.nabble.com/Build-statically-linked-boost-libs-*-vc90-mt-sgd.lib-td16301103.html

提交回复
热议问题