   std::vector with SDL and VC++2005 Express
  I have a working SDL program, but whenever I try to use a vector, I get a linker error.  I #include <vector>, so the only thing I can think of is that I changed the Code Generation to Multithreaded DLL, because the exact same code works in a normal Console app.Here is the stripped function that causes the choke-up:std::vector<int> LoadLevel(std::string path){std::vector<int> level;return level;}This is the error:main.obj : error LNK2001: unresolved external symbol __imp___CrtDbgReportW[Edited by - Daniel Miller on December 12, 2005 11:25:39 AM]
  Hmmm..  Odd, visual C++ express 2k5 runs fine with vectors for me.  Do you have the platform SDK installed?  It seems that the linker error is from not finding MSVCRTD.lib.C++   ;  Yes, the platform SDK is installed, and the program works fine without that function (a sprite appears in a 640x480 window).  Vectors also work fine in other programs, which is why I'm confused. :(   ;Quote:Original post by Daniel MillerI changed the Code Generatio to Multithreaded DLLHave you done a full clean and rebuild?;Quote:Original post by mrbastardQuote:Original post by Daniel MillerI changed the Code Generatio to Multithreaded DLLHave you done a full clean and rebuild?Well, the project started off as a Multithreaded DLL.Still, I've cleaned the project several times, hoping that would help.   ;  OK, I just realized that I had this problem in the past:LinkyI also remember that it was the main reason that I started working in C#. :PIs there not a workaround for this?  It's extremely irritating. >.<   