Original Post
To start things off, I'm using VC 2005 Beta. Whenever I try to use a vector in a function, I get a linker error (LNK2019 or sometimes LNK2009). Here my code (it is as small as I can make it) It was working fine until I tried to use vectors. Any idea what the problem could be? (Here is the exact error) [Edited by - Daniel Miller on January 18, 2005 8:31:05 PM]
#include <SDL/SDL.h>
#include <vector>
void f()
{
std::vector<int> v;
v.clear();
}
int main (int argc, char* argv[])
{
return 0;
}
main.obj : error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: void __thiscall std::_Vector_const_iterator<int,class std::allocator<int> >::_Compat(class std::_Vector_const_iterator<int,class std::allocator<int> > const &)const " (?_Compat@?$_Vector_const_iterator@HV?$allocator@H@std@@@std@@QBEXABV12@@Z)