fstream in DirectX 9.0 project?

Started by
3 comments, last by mhays 20 years, 7 months ago
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
--------------------------------------------------"I have never let my schooling interfere with my education. " --- M.TwainMarcus Hayswww.phrenicgames.com
Advertisement
Try using <fstream> instead of <fstream.h>.

[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
Arguing on the internet is like running in the Special Olympics: Even if you win, you're still retarded.[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...
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]
--------------------------------------------------"I have never let my schooling interfere with my education. " --- M.TwainMarcus Hayswww.phrenicgames.com
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]
Arguing on the internet is like running in the Special Olympics: Even if you win, you're still retarded.[How To Ask Questions|STL Programmer's Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
I solved the problem, the project hadn''t inherited the .lib''s it needed.

thanks

Marcus
--------------------------------------------------"I have never let my schooling interfere with my education. " --- M.TwainMarcus Hayswww.phrenicgames.com

This topic is closed to new replies.

Advertisement