Hi,
I am trying to include a very basic class with my dark GDK program. The header looks like this,
#pragma once
#include<iostream>
using namespace std;
class Note
{
private:
int vPos;
int hPos;
char type[50];
public:
Note(int vPos, int hPos, char type);
~Note(void);
void setHPos( int value );
int getHPos();
};
My program works fine without this class but as soon as I include it I get the following 5 unresolved external symbol errors. What is going on?
-----------------------errors-----------------------
Error 2 error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: char const & __thiscall std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >::operator*(void)const " (??D?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDXZ) libcpmtd.lib
Error 3 error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib
Error 4 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) libcpmtd.lib
Error 5 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) libcpmtd.lib
Error 6 error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype libcpmtd.lib