fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib'

前端 未结 10 1537
时光取名叫无心
时光取名叫无心 2020-11-28 20:31

Seem I can\'t get this to work. I made a simple console application (which depend on websocket++ library) which need Boost libraries.. but when I t

10条回答
  •  时光说笑
    2020-11-28 20:56

    2>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc120-mt-sgd-1_55.lib

    In my case, bootstrap/bjam was not available (libraries were precompiled and committed to SCM) on old inherited project. Libraries did not have VC or BOOST versioning in their filenames eg: libboost_regex-mt-sgd.lib, however Processed /DEFAULTLIB:libboost_regex-vc120-mt-sgd-1_55.lib was somehow triggered automatically.

    Fixed by manually adding the non-versioned filename to:

    $(DK_BOOST)\lib64\libboost_regex-mt-sgd.lib
    

    and blacklisting the ...vc120-mt-sgd-1_55.lib in

    libboost_regex-vc120-mt-sgd-1_55.lib
    

提交回复
热议问题