When I try to compile my prog in Debug with a vector defined i get these errors
1>LINK : Debug\SpaceAttack.exe not found or not built by the last incremental link; performing full link
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>Debug\SpaceAttack.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://f:\David\Documents\Visual Studio 2008\Projects\SpaceAttack\SpaceAttack\Debug\BuildLog.htm"
1>SpaceAttack - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The Code
#pragma once
#define SCREENWIDTH 800
#define SCREENHIGHT 600
#include "Alien.h"
#include "Player.h"
#include "Shot.h"
#include <vector>
using namespace std;
class CGame
{
public:
CGame(void);
void Load_Images();
void Ini_Game();
void Draw_Screen();
void Collision_Detection();
void Input_Handling();
void PrintDevCodes();
~CGame(void);
private :
vector<CShot>ShotVector;
CPlayer human;
};