I have a visual studio 2008 project that I am working on for school. I've nearly completed it, although for some reason that is beyond me, and my instructors the project does not compile in debug mode. It does however work fine when compiled for release. Any help with the matter is greatly appreciated
The project is to create a map editor that will eventually be used to make maps for some D* path finding.
[controls]
left click - black
right click - white
s - saves
drag-and-drop a map file onto the .exe to load it (otherwise a blank 1024x1024 map is created)
Protip: When code doesn't compile, the compiler error tells you the reason why.
Protip 2: When asking about compiler errors, saying "my code won't compile" does not help us. Instead, post the error you get along with the code that produces the error (that is, the line of code that the error is on, and the code around it -- typically the whole function).
I have had a quick look at the project file. As far as I can see you have a linker error. For some reason VS is trying to link to a library the has a unicode version of CrtDbgReport. I would assume at this point that it is some conflict be SDL and std::vector when debug is defined (I don't use SDL so that is my limit at the moment).
the error for anyone else interested:
Error 48 error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: class std::vector<bool,class std::allocator<bool> > & __thiscall std::vector<class std::vector<bool,class std::allocator<bool> >,class std::allocator<class std::vector<bool,class std::allocator<bool> > > >::operator[](unsigned int)" (??A?$vector@V?$vector@_NV?$allocator@_N@std@@@std@@V?$allocator@V?$vector@_NV?$allocator@_N@std@@@std@@@2@@std@@QAEAAV?$vector@_NV?$allocator@_N@std@@@1@I@Z) binarymap.obj BinaryMapEditor