Original Post
I am trying to make a simple terrain engine and have come across a problem in opening a bitmap to read in the heightdata. However when using fstream I seem to be getting unresolved external symbols as below; To throw this error up I simply have to set a variable wih the ifstream method, nothing more than that. Does anybody know why I am getting this error? I have double checked that I have the correct files in my include directory and everything seems in place.
Assignment1 error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int,int,char const *,int)" (??_U@YAPAXIHPBDH@Z)
Assignment1 error LNK2019: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z) referenced in function "public: __thiscall ofstream::ofstream(void)" (??0ofstream@@QAE@XZ)
Assignment1 error LNK2019: unresolved external symbol "void * __cdecl operator new[](unsigned int,int,char const *,int)" (??_U@YAPAXIHPBDH@Z) referenced in function "public: class filebuf * __thiscall filebuf::attach(int)" (?attach@filebuf@@QAEPAV1@H@Z)
Assignment1 fatal error LNK1120: 2 unresolved externals