c++ - Linker error LNK1104 with 'libboost_filesystem-vc100-mt-s-1_49.lib' -


during process of linking program boost::filesystem module in release mode next error:

error lnk1104: cannot open file 'libboost_filesystem-vc100-mt-s-1_49.lib'

however, in boost\stage\lib directory have next libraries referred filesystem module:

libboost_filesystem-vc100-mt-1_49.lib

libboost_filesystem-vc100-mt-gd-1_49.lib

my questions are:

why vc++ asking 'libboost_filesystem-vc100-mt-s-1_49.lib?

which compiler/linking properties should change compiler ask libboost_filesystem-vc100-mt-1_49.lib?

update: vc2010++ solution has 2 projects include previous boost library: x library , y (the main program) invokes x. 1) when build x configuration type=static library , runtimelibrary=multi-threaded (/mt), ok. 2) when build y configuration type=application (.exe) , runtimelibrary=multi-threaded (/mt), issues error indicated, if change configuration type=static library builds ok, main program has .lib extension , not expected .exe.

thanks attention.

you using /mt or /mtd option in c/c++/code generation/runtime library require static library, boost default build shared library output. can switch runtime library /md or /mdd. other option recompile boost static library output , you'll 'libboost_filesystem-vc100-mt-s-1_49.lib'..


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -