okay so heres my source code:
#include "DarkGDK.h"
#include <iostream>
using namespace std;
void draw_enviroment()
{
dbSprite(1,0,0,1);
};
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
int c_brush();
int last_brush();
int maps[12][10];
int min_x=0;
int max_x=6;
int x_offset=0;
int min_y=5;
int max_y=10;
int y_offset=0;
dbLoadImage("Media/Graphics/Enviroment.jpg",1);
// our main loop
while ( LoopGDK ( ) )
{
draw_enviroment();
// update the screen
dbSync ( );
}
// return back to windows
return;
}
as you can see, all im trying to do is display a sprite to the screen. But when i do. I get this error:
Quote: "
------ Build started: Project: Level Editor, Configuration: Debug Win32 ------
Linking...
libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
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)
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)
Debug\Level Editor.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Documents and Settings\dustin.WYRMWORK-6E1E97\My Documents\Mario Game\Dark GDK - Game1\Dark GDK - Game1\Debug\BuildLog.htm"
Level Editor - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"