Note that there are some explanatory texts on larger screens.

plurals
  1. POvisual studio linker warning LNK4098
    text
    copied!<p>I have a dll project in which, when in Release configuration I build the project, I get the following warning:</p> <blockquote> <p>MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library</p> </blockquote> <p>It's just a warning but I dunno if this should be taken into account.</p> <p>For what I've found out, they are both multithread libs, normal and debugging versions. My dll uses multithreading and I can debug it, although I use boost:thread for it, so I really dunno if I need this Windows specific libraries for debugging or Release building...</p> <p>Kind regards, Alex</p> <p>Well, I did as BuschnicK suggested and using the /VERBOSE:LIB linker flag I found out that I was linking to these libraries in Debug configuration:</p> <p>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:</p> <p>I had the same in Release config, mostly because I didn't specify then "explicitly". Thus, I changed them to this in Release:</p> <p>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:</p> <p>That seem to worked but I was still getting the first warning, til I realized I had the _DEBUG preprocessor definition in my Release config too, removed it and it's working sweet now.</p> <p>Thanks everyone for the help!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload