Archived

This topic is now archived and is closed to further replies.

mhays

fstream in DirectX 9.0 project?

Recommended Posts

mhays    122
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

Share this post


Link to post
Share on other sites
mhays    122
ok, I switched it over to but now i get these errors...

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_dbg
D3dWrap error LNK2001: unresolved external symbol __malloc_dbg
D3dWrap error LNK2019: unresolved external symbol __malloc_dbg referenced in function __Wcsxfrm
D3dWrap 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_dbg
D3dWrap 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 __Mbrtowc
D3dWrap 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]

Share this post


Link to post
Share on other sites