c++ - visual studio linker warning LNK4098 -


i have dll project in which, when in release configuration build project, following warning:

msvcrt.lib(cinitexe.obj) : warning lnk4098: defaultlib 'msvcrtd.lib' conflicts use of other libs; use /nodefaultlib:library

it's warning dunno if should taken account.

for i've found out, both multithread libs, normal , debugging versions. dll uses multithreading , can debug it, although use boost:thread it, dunno if need windows specific libraries debugging or release building...

kind regards, alex

well, did buschnick suggested , using /verbose:lib linker flag found out linking these libraries in debug configuration:

boost_filesystem-vc100-mt-gd-1_44.lib: libboost_system-vc100-mt-gd-1_44.lib: libboost_thread-vc100-mt-gd-1_44.lib: libboost_date_time-vc100-mt-gd-1_44.lib:

i had same in release config, because didn't specify "explicitly". thus, changed them in release:

boost_filesystem-vc100-mt-1_44.lib: libboost_system-vc100-mt-1_44.lib: libboost_thread-vc100-mt-1_44.lib: libboost_date_time-vc100-mt-1_44.lib:

that seem worked still getting first warning, til realized had _debug preprocessor definition in release config too, removed , it's working sweet now.

thanks help!!

it sounds running debug library , release compiled library in same build.

go through project options , select use debug versions of 3rd party libraries use.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -