fstream in DirectX 9.0 project?
Hello,
I''m switching over my project from OpenGL to directX 9 and I am having a problem using fstream.h (particularly an ifstream) in my project. I keep getting this error...
D3dWrap error LNK2019: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z) referenced in function "public: __thiscall ifstream::ifstream(void)" (??0ifstream@@QAE@XZ)
I assume that I''m missing some library, but I can''t figure out which one it is. Does anyone know the solution to my problem?? Thanks
Marcus Hays
Try using <fstream> instead of <fstream.h>.
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
ok, I switched it over to but now i get these errors...
any ideas?
Thanks
Marcus
[edited by - mhays on September 2, 2003 1:42:51 PM]
[edited by - mhays on September 2, 2003 1:43:17 PM]
D3dWrap 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)D3dWrap error LNK2001: unresolved external symbol __malloc_dbgD3dWrap error LNK2001: unresolved external symbol __malloc_dbgD3dWrap error LNK2019: unresolved external symbol __malloc_dbg referenced in function __WcsxfrmD3dWrap 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)D3dWrap error LNK2001: unresolved external symbol __free_dbgD3dWrap error LNK2019: unresolved external symbol __realloc_dbg referenced in function "private: void __thiscall std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int)" (?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z)D3dWrap error LNK2019: unresolved external symbol __CrtDbgReport referenced in function __MbrtowcD3dWrap fatal error LNK1120: 4 unresolved externals
any ideas?
Thanks
Marcus
[edited by - mhays on September 2, 2003 1:42:51 PM]
[edited by - mhays on September 2, 2003 1:43:17 PM]
What compiler and what implementation of STL are you using?
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement