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

前端 未结 10 1528
时光取名叫无心
时光取名叫无心 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 21:09

    Yet another solution:

    I was stumped because I was including boost_regex-vc120-mt-gd-1_58.lib in my Link->Additional Dependencies property, but the link kept telling me it couldn't open libboost_regex-vc120-mt-gd-1_58.lib (note the lib prefix). I didn't specify libboost_regex-vc120-mt-gd-1_58.lib.

    I was trying to use (and had built) the boost dynamic libraries (.dlls) but did not have the BOOST_ALL_DYN_LINK macro defined. Apparently there are hints in the compile to include a library, and without BOOST_ALL_DYN_LINK it looks for the static library (with the lib prefix), not the dynamic library (without a lib prefix).

提交回复
热议问题