   linking woes
  hello,in order to redistribute my game i want to build an exe that contains all the necessary libraries as well so i set my runtime libraries to "Multithreaded /MT"as opposed to "Multithreaded DLL /MD" so that they are statically linked into the exe.but then, i am getting errors like these:Error8error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in main.objmsvcprtd.libwhat is causing these errors in /MT mode and how can i avoid them?i just want to avoid that my users need to install the VC redistributables (vcredist_x86.exe)thanks![Edited by - ehmdjii on April 17, 2008 3:37:52 PM]
  All of the libraries you statically link to also need to use the same version of the CRT, otherwise you will get linker errors like the one you've posted.  Also you should be aware that using the static version of the CRT isn't recommended, as your app won't benefit from any security updates or bug fixes for the CRT.  If you have the pro version of Visual Studio, you can create a setup project that will produce an .msi that will automatically handle installation of the CRT dll.   ;  thanks.where can i find the corresponding dlls for my version (VC2008 express) and where should i put them so that they are used for statically linking?thanks a lot!   ;  anyone?why does VS actually not provide the dlls with the correct version?thank you!