   SDL + STL = unresolved external...
  I can't figure out how to use std::list in the project that's already set to SDL library. Game in rar:http://www.kiryx.ovh.org/Game.rar (check main.cpp around 65th line)There's no problem creating the list, but I can't seem to get anything from it later.I get the:1>Main.obj : error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: struct SDL_Rect const & __thiscall std::list<struct SDL_Rect,class std::allocator<struct SDL_Rect> >::_Const_iterator<1>::operator*(void)const " (??D?$_Const_iterator@$00@?$list@USDL_Rect@@V?$allocator@USDL_Rect@@@std@@@std@@QBEABUSDL_Rect@@XZ)Funny thing is, it works just fine with newly created console program, but fails with SDL project, so it's probably matter of SDL's setup.Runtime Library is set to multi-threaded DLL.Linker -> input has the additional SDL dependencies.I use XP + Visual C++ 2008.Also I don't know how to run the project in release mode, so I'm not sure if it works fine then.   
Quote:Original post by danDemonRuntime Library is set to multi-threaded DLL.That's the problem. CrtDbgReportW() is a debug function which is used by various functions including STL iterators for debugging. In a debug build you want to link to the mult-threaded debug DLL.Quote:Original post by danDemonAlso I don't know how to run the project in release mode, so I'm not sure if it works fine then.Select "Release" instead of "Debug" from the dropdown list on the Standard toolbar in Visual Studio.   ;Quote:Original post by Evil SteveQuote:Original post by danDemonRuntime Library is set to multi-threaded DLL.That's the problem. CrtDbgReportW() is a debug function which is used by various functions including STL iterators for debugging. In a debug build you want to link to the mult-threaded debug DLL.Quote:Original post by danDemonAlso I don't know how to run the project in release mode, so I'm not sure if it works fine then.Select "Release" instead of "Debug" from the dropdown list on the Standard toolbar in Visual Studio.Worked just fine. Thanks a lot!!   