Compiling sample DarkGDK Program

This is a discussion on Compiling sample DarkGDK Program within the Game Programming forums, part of the General Programming Boards category; Hey All, I just finished installing vc++, then directx sdk aug07, then darkgdk. Following the instruction very closely. I even ...

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    65

    Compiling sample DarkGDK Program

    Hey All,

    I just finished installing vc++, then directx sdk aug07, then darkgdk. Following the instruction very closely.

    I even went into the option menu to ensure that the include and library directories were setup right (they are).

    But whenever I compile the default sample project I get the following error:
    Code:
    Compiling...
    Main.cpp
    Linking...
    darksdk.lib(DarkSDK.obj) : error LNK2019: unresolved external symbol "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ) referenced in function _WinMain@16
    Debug\Dark GDK - 3D Game2.exe : fatal error LNK1120: 1 unresolved externals
    Any Ideas?

    this is the code, just incase that helps out:
    Code:
    // Dark GDK - The Game Creators - www.thegamecreators.com
    
    // the wizard has created a very simple 3D project that uses Dark GDK
    // it can be used as a starting point in making your own 3D games
    
    // whenever using Dark GDK you must ensure you include the header file
    #include "DarkGDK.h"
    
    // the main entry point for the application is this function
    void main ( void )
    {
    	// in this application we are going to create some 3D objects
    	// and position them on screen
    
    	// when starting a Dark GDK program it is useful to set global
    	// application properties, we begin by turning the sync rate on,
    	// this means we control when the screen is updated, we also set
    	// the maximum rate to 60 which means the maximum frame rate will
    	// be set at 60 frames per second
    	dbSyncOn   ( );
    	dbSyncRate ( 60 );
    
    	// set our random seed to a value from the timer, this will help
    	// to ensure each time we run our program the random values appear
    	// more random
    	dbRandomize ( dbTimer ( ) );
    
    	// make some 3D objects
    	for ( int i = 1; i < 50; i++ )
    	{
    		// make a sphere
    		dbMakeObjectSphere ( i, 1 );
    
    		// position the object in a random location
    		dbPositionObject ( i, dbRnd ( 20 ), dbRnd ( 20 ), dbRnd ( 20 ) );
    
    		// adjust scaling
    		dbScaleObject ( i, 100 + dbRnd ( 400 ), 100 + dbRnd ( 400 ), 100 + dbRnd ( 400 ) );
    
    		// give the object a color
    		dbColorObject ( i, dbRgb ( dbRnd ( 255 ), dbRnd ( 255 ), dbRnd ( 255 ) ) );
    
    		// increase specular power
    		dbSetObjectSpecularPower ( i, 255 );
    
    		// turn off ambient lighting for this object
    		dbSetObjectAmbient ( i, 0 );
    	}
    
    	// move our camera back so we can view the objects
    	dbPositionCamera ( 10, 10, -20 );
    
    	// now we come to our main loop, we call LoopGDK so some internal
    	// work can be carried out by the GDK
    	while ( LoopGDK ( ) )
    	{
    		// display some text on screen
    		dbText ( 0, 0, "Use the up and down arrow keys to move the camera" );
    
    		// move the camera forwards
    		if ( dbUpKey ( ) )
    			dbMoveCamera ( 1 );
    
    		// move the camera backwards
    		if ( dbDownKey ( ) )
    			dbMoveCamera ( -1 );
    
    		// rotate all of our objects
    		for ( int i = 1; i < 50; i++ )
    			dbRotateObject ( i, dbObjectAngleX ( i ) + 0.1, dbObjectAngleY ( i ) + 0.2, dbObjectAngleZ ( i ) + 0.3 );
    		
    		// here we make a call to update the contents of the screen
    		dbSync ( );
    	}
    
    	// before quitting delete our objects
    	for ( int i = 1; i < 50; i++ )
    		dbDeleteObject ( i );
    
    	// and now everything is ready to return back to Windows
    	return;
    }

  2. #2
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    void main o.O? Is that directly from the sample?
    Currently research OpenGL

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    65
    I now, that is exactly what I thought as well. And yes it is what the wizard automatically generates, but an interesting note on that: it declares void main, and had return 0; doesn'r make any sense to me, I changed it to int main.

    as far as the problem, I thinks I am making it worse, these are the errors now:
    Code:
    1>Compiling...
    1>Main.cpp
    1>Linking...
    1>LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported;  ignored
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbDeleteObject(int)" (?dbDeleteObject@@YAXH@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbRotateObject(int,float,float,float)" (?dbRotateObject@@YAXHMMM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "float __cdecl dbObjectAngleX(int)" (?dbObjectAngleX@@YAMH@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "float __cdecl dbObjectAngleY(int)" (?dbObjectAngleY@@YAMH@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "float __cdecl dbObjectAngleZ(int)" (?dbObjectAngleZ@@YAMH@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "int __cdecl dbDownKey(void)" (?dbDownKey@@YAHXZ) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbMoveCamera(float)" (?dbMoveCamera@@YAXM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "int __cdecl dbUpKey(void)" (?dbUpKey@@YAHXZ) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPositionCamera(float,float,float)" (?dbPositionCamera@@YAXMMM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbSetObjectAmbient(int,bool)" (?dbSetObjectAmbient@@YAXH_N@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbSetObjectSpecularPower(int,float)" (?dbSetObjectSpecularPower@@YAXHM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbColorObject(int,unsigned long)" (?dbColorObject@@YAXHK@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl dbRgb(int,int,int)" (?dbRgb@@YAKHHH@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbScaleObject(int,float,float,float)" (?dbScaleObject@@YAXHMMM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPositionObject(int,float,float,float)" (?dbPositionObject@@YAXHMMM@Z) referenced in function _main
    1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbMakeObjectSphere(int,float)" (?dbMakeObjectSphere@@YAXHM@Z) referenced in function _main
    1>Main.obj : error LNK2001: unresolved external symbol __fltused
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2001: unresolved external symbol __fltused
    1>LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl GetGlobPtr(void)" (?GetGlobPtr@@YAKXZ) referenced in function "unsigned long __cdecl dbGetGlobPtr(void)" (?dbGetGlobPtr@@YAKXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PassDLLs(void)" (?PassDLLs@@YAXXZ) referenced in function "void __cdecl dbPassDLLs(void)" (?dbPassDLLs@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PassCmdLineHandlerPtr(void *)" (?PassCmdLineHandlerPtr@@YAXPAX@Z) referenced in function "void __cdecl dbPassCmdLineLineHandlerPtr(void *)" (?dbPassCmdLineLineHandlerPtr@@YAXPAX@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PassErrorHandlerPtr(void *)" (?PassErrorHandlerPtr@@YAXPAX@Z) referenced in function "void __cdecl dbPassErrorHandlerPtr(void *)" (?dbPassErrorHandlerPtr@@YAXPAX@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl InitDisplayEx(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *,struct HWND__ *,unsigned long,unsigned long)" (?InitDisplayEx@@YAKKKKKPAUHINSTANCE__@@PADPAUHWND__@@KK@Z) referenced in function "unsigned long __cdecl dbInitDisplayEx(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *,struct HWND__ *,unsigned long,unsigned long)" (?dbInitDisplayEx@@YAKKKKKPAUHINSTANCE__@@PADPAUHWND__@@KK@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl InitDisplay(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *)" (?InitDisplay@@YAKKKKKPAUHINSTANCE__@@PAD@Z) referenced in function "unsigned long __cdecl dbInitDisplay(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *)" (?dbInitDisplay@@YAKKKKKPAUHINSTANCE__@@PAD@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncOn(void)" (?SyncOn@@YAXXZ) referenced in function "void __cdecl dbSyncOn(void)" (?dbSyncOn@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncOff(void)" (?SyncOff@@YAXXZ) referenced in function "void __cdecl dbSyncOff(void)" (?dbSyncOff@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Sync(void)" (?Sync@@YAXXZ) referenced in function "void __cdecl dbSync(void)" (?dbSync@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncRate(int)" (?SyncRate@@YAXH@Z) referenced in function "void __cdecl dbSyncRate(int)" (?dbSyncRate@@YAXH@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl FastSync(void)" (?FastSync@@YAXXZ) referenced in function "void __cdecl dbFastSync(void)" (?dbFastSync@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Cls(void)" (?Cls@@YAXXZ) referenced in function "void __cdecl dbCLS(void)" (?dbCLS@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SetCursor(int,int)" (?SetCursor@@YAXHH@Z) referenced in function "void __cdecl dbSetCursor(int,int)" (?dbSetCursor@@YAXHH@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintR(__int64)" (?PrintR@@YAX_J@Z) referenced in function "void __cdecl dbPrint(__int64)" (?dbPrint@@YAX_J@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintO(double)" (?PrintO@@YAXN@Z) referenced in function "void __cdecl dbPrint(double)" (?dbPrint@@YAXN@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintS(char *)" (?PrintS@@YAXPAD@Z) referenced in function "void __cdecl dbPrint(char *)" (?dbPrint@@YAXPAD@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Print0(void)" (?Print0@@YAXXZ) referenced in function "void __cdecl dbPrint(void)" (?dbPrint@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintCR(__int64)" (?PrintCR@@YAX_J@Z) referenced in function "void __cdecl dbPrintC(__int64)" (?dbPrintC@@YAX_J@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintCO(double)" (?PrintCO@@YAXN@Z) referenced in function "void __cdecl dbPrintC(double)" (?dbPrintC@@YAXN@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PrintCS(char *)" (?PrintCS@@YAXPAD@Z) referenced in function "void __cdecl dbPrintC(char *)" (?dbPrintC@@YAXPAD@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl InputS(unsigned long)" (?InputS@@YAKK@Z) referenced in function "char * __cdecl dbInput(void)" (?dbInput@@YAPADXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SleepL(int)" (?SleepL@@YAXH@Z) referenced in function "void __cdecl dbWait(int)" (?dbWait@@YAXH@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl WaitForMouse(void)" (?WaitForMouse@@YAXXZ) referenced in function "void __cdecl dbWaitMouse(void)" (?dbWaitMouse@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl WaitForKey(void)" (?WaitForKey@@YAXXZ) referenced in function "void __cdecl dbWaitKey(void)" (?dbWaitKey@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToBack(void)" (?DrawToBack@@YAXXZ) referenced in function "void __cdecl dbDrawToBack(void)" (?dbDrawToBack@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToFront(void)" (?DrawToFront@@YAXXZ) referenced in function "void __cdecl dbDrawToFront(void)" (?dbDrawToFront@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToCamera(void)" (?DrawToCamera@@YAXXZ) referenced in function "void __cdecl dbDrawToCamera(void)" (?dbDrawToCamera@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToScreen(void)" (?DrawToScreen@@YAXXZ) referenced in function "void __cdecl dbDrawToScreen(void)" (?dbDrawToScreen@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawSpritesFirst(void)" (?DrawSpritesFirst@@YAXXZ) referenced in function "void __cdecl dbDrawSpritesFirst(void)" (?dbDrawSpritesFirst@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawSpritesLast(void)" (?DrawSpritesLast@@YAXXZ) referenced in function "void __cdecl dbDrawSpritesLast(void)" (?dbDrawSpritesLast@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Randomize(int)" (?Randomize@@YAXH@Z) referenced in function "void __cdecl dbRandomize(int)" (?dbRandomize@@YAXH@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl CosFF(float)" (?CosFF@@YAKM@Z) referenced in function "float __cdecl dbCos(float)" (?dbCos@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl SinFF(float)" (?SinFF@@YAKM@Z) referenced in function "float __cdecl dbSin(float)" (?dbSin@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl TanFF(float)" (?TanFF@@YAKM@Z) referenced in function "float __cdecl dbTan(float)" (?dbTan@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl AcosFF(float)" (?AcosFF@@YAKM@Z) referenced in function "float __cdecl dbAcos(float)" (?dbAcos@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl AsinFF(float)" (?AsinFF@@YAKM@Z) referenced in function "float __cdecl dbAsin(float)" (?dbAsin@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl AtanFF(float)" (?AtanFF@@YAKM@Z) referenced in function "float __cdecl dbAtan(float)" (?dbAtan@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl Atan2FFF(float,float)" (?Atan2FFF@@YAKMM@Z) referenced in function "float __cdecl dbAtanFull(float,float)" (?dbAtanFull@@YAMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl HcosFF(float)" (?HcosFF@@YAKM@Z) referenced in function "float __cdecl dbHcos(float)" (?dbHcos@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl HsinFF(float)" (?HsinFF@@YAKM@Z) referenced in function "float __cdecl dbHsin(float)" (?dbHsin@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl HtanFF(float)" (?HtanFF@@YAKM@Z) referenced in function "float __cdecl dbHtan(float)" (?dbHtan@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl SqrtFF(float)" (?SqrtFF@@YAKM@Z) referenced in function "float __cdecl dbSqrt(float)" (?dbSqrt@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl AbsFF(float)" (?AbsFF@@YAKM@Z) referenced in function "float __cdecl dbAbs(float)" (?dbAbs@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl IntLF(float)" (?IntLF@@YAKM@Z) referenced in function "float __cdecl dbInt(float)" (?dbInt@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl ExpFF(float)" (?ExpFF@@YAKM@Z) referenced in function "float __cdecl dbExp(float)" (?dbExp@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "int __cdecl RndLL(int)" (?RndLL@@YAHH@Z) referenced in function "int __cdecl dbRnd(int)" (?dbRnd@@YAHH@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "int __cdecl TimerL(void)" (?TimerL@@YAHXZ) referenced in function "int __cdecl dbTimer(void)" (?dbTimer@@YAHXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl InkeyS(unsigned long)" (?InkeyS@@YAKK@Z) referenced in function "char * __cdecl dbInKey(void)" (?dbInKey@@YAPADXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl Cl$(unsigned long)" (?Cl$@@YAKK@Z) referenced in function "char * __cdecl dbCl$(void)" (?dbCl$@@YAPADXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl GetDate$(unsigned long)" (?GetDate$@@YAKK@Z) referenced in function "char * __cdecl dbGetDate$(void)" (?dbGetDate$@@YAPADXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl GetTime$(unsigned long)" (?GetTime$@@YAKK@Z) referenced in function "char * __cdecl dbGetTime$(void)" (?dbGetTime$@@YAPADXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl CurveValueFFFF(float,float,float)" (?CurveValueFFFF@@YAKMMM@Z) referenced in function "float __cdecl dbCurveValue(float,float,float)" (?dbCurveValue@@YAMMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl WrapValueFF(float)" (?WrapValueFF@@YAKM@Z) referenced in function "float __cdecl dbWrapValue(float)" (?dbWrapValue@@YAMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl NewXValueFFFF(float,float,float)" (?NewXValueFFFF@@YAKMMM@Z) referenced in function "float __cdecl dbNewXValue(float,float,float)" (?dbNewXValue@@YAMMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl NewYValueFFFF(float,float,float)" (?NewYValueFFFF@@YAKMMM@Z) referenced in function "float __cdecl dbNewYValue(float,float,float)" (?dbNewYValue@@YAMMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl NewZValueFFFF(float,float,float)" (?NewZValueFFFF@@YAKMMM@Z) referenced in function "float __cdecl dbNewZValue(float,float,float)" (?dbNewZValue@@YAMMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl CurveAngleFFFF(float,float,float)" (?CurveAngleFFFF@@YAKMMM@Z) referenced in function "float __cdecl dbCurveAngle(float,float,float)" (?dbCurveAngle@@YAMMMM@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl AlwaysActiveOff(void)" (?AlwaysActiveOff@@YAXXZ) referenced in function "void __cdecl dbAlwaysActiveOff(void)" (?dbAlwaysActiveOff@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl AlwaysActiveOn(void)" (?AlwaysActiveOn@@YAXXZ) referenced in function "void __cdecl dbAlwaysActiveOn(void)" (?dbAlwaysActiveOn@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncMask(unsigned long)" (?SyncMask@@YAXK@Z) referenced in function "void __cdecl dbSyncMask(unsigned long)" (?dbSyncMask@@YAXK@Z)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncDisableQuad(void)" (?SyncDisableQuad@@YAXXZ) referenced in function "void __cdecl dbSyncDisableQuad(void)" (?dbSyncDisableQuad@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncEnableQuad(void)" (?SyncEnableQuad@@YAXXZ) referenced in function "void __cdecl dbSyncEnableQuad(void)" (?dbSyncEnableQuad@@YAXXZ)
    1>darksdk.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncRenderQuad(void)" (?SyncRenderQuad@@YAXXZ) referenced in function "void __cdecl dbSyncRenderQuad(void)" (?dbSyncRenderQuad@@YAXXZ)
    1>darksdk.lib(DarkSDK.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "bool __cdecl LoadSDKDLLs(void)" (?LoadSDKDLLs@@YA_NXZ)
    1>darksdk.lib(DarkSDK.obj) : error LNK2019: unresolved external symbol "int g_iDarkGameSDKQuit" (?g_iDarkGameSDKQuit@@3HA) referenced in function "bool __cdecl LoopGDK(void)" (?LoopGDK@@YA_NXZ)
    1>darksdk.lib(DarkSDK.obj) : error LNK2019: unresolved external symbol "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ) referenced in function _WinMain@16
    1>Release\Dark GDK - 3D Game1.exe : fatal error LNK1120: 85 unresolved externals
    I am trying to follow the advice posted on DarkGDK's forum, but it is vague and most people figure it out themselves, so I will keep chugging away at it.

    Thanks!

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    1
    its not void main (void)...

    change it to:

    void DarkGDK ( void )

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And I think the DarkGDK is missing
    Code:
    extern "C"
    - or more likely, is not intended to work with a C++ compiler, so you may be better off renaming your source files to .c rather than .cpp [and updating the project accordingly - if you have only one source file, start a new empty project, copy over the source file (with new name) and add it to the project].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Looks like you have a ton of libraries not linking correctly. Also looks as if it cannot find a WinMain.

  7. #7
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Ok, why is it void main o.O?
    Currently research OpenGL

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. beginning C Programmer - Need Help Compiling Program
    By fisguts in forum C Programming
    Replies: 2
    Last Post: 07-30-2008, 03:14 PM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. newbie : compiling a C++ program in linux
    By gemini_shooter in forum C++ Programming
    Replies: 5
    Last Post: 06-23-2005, 03:45 PM
  4. Problem executing sample program:
    By mrabiu in forum C++ Programming
    Replies: 4
    Last Post: 03-13-2004, 06:44 PM
  5. Help compiling a program
    By jjj93421 in forum C++ Programming
    Replies: 1
    Last Post: 03-08-2004, 06:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21