Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / i'm having a lot of trouble with include files

Author
Message
logicandchaos
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 23rd Sep 2009 20:48
hi i can write programs & they work fine, but when i try to include iostream or fstream i get errors
adding the line #include <iostream.h>
produces these errors:
1>Compiling...
1>Main.cpp
1>Linking...
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : 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)
1>libcpmtd.lib(xdebug.obj) : 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)
1>Debug\Dark GDK - 2D Game1.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Users\Matt\Documents\Visual Studio 2008\Projects\Dark GDK - 2D Game1\Dark GDK - 2D Game1\Debug\BuildLog.htm"
1>Dark GDK - 2D Game1 - 3 error(s), 1 warning(s)

and adding the line #include <fstream.h>
produces these errors:
1>Compiling...
1>Main.cpp
1>Linking...
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : 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)
1>libcpmtd.lib(xdebug.obj) : 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)
1>Debug\Dark GDK - 2D Game1.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Users\Matt\Documents\Visual Studio 2008\Projects\Dark GDK - 2D Game1\Dark GDK - 2D Game1\Debug\BuildLog.htm"
1>Dark GDK - 2D Game1 - 3 error(s), 1 warning(s)

I don't know what to do these are the only header files i have come across so far that are giving me trouble, if anyone knows what is wrong i would greatly appreciate the help, i have VC++ express 2008, dark GDK, running in windows vista

logicandchaos
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 23rd Sep 2009 22:53 Edited at: 23rd Sep 2009 22:54
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: &lt;script&gt; alert(1); &lt;/script&gt;
Posted: 23rd Sep 2009 23:06
they should sticky that post

logicandchaos
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 24th Sep 2009 00:50
THANX ALOT!!!
i was getting really frustrated and this solved my problems, i would never have figured it out on my own, i was about to smash my laptop, but this is a much better solution!

logicandchaos

Login to post a reply

Server time is: 2024-10-01 12:42:21
Your offset time is: 2024-10-01 12:42:21