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 / Unresolved Externals

Author
Message
King3D
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: El Segundo, CA
Posted: 1st Dec 2005 08:30
Why would I get this:
DarkSDK.lib(globstruct.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
Matrix.lib(CMatrixManagerC.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "public: void __thiscall CMatrixManager::Update(int)" (?Update@CMatrixManager@@QAEXH@Z)
Particles.lib(CSnowC.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
Basic3D.lib(CObjectManagerC.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "public: bool __thiscall CObjectManager::FlagAllObjectMeshesUsingBuffer(struct CObjectManager::sVertexData *,struct CObjectManager::sIndexData *)" (?FlagAllObjectMeshesUsingBuffer@CObjectManager@@QAE_NPAUsVertexData@1@PAUsIndexData@1@@Z)
Basic3D.lib(Universe.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
Basic3D.lib(cLightMaps.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
DarkSDK.lib(DarkSDK.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
Basic3D.lib(CObjectsC.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "void __cdecl Load(unsigned long,int)" (?Load@@YAXKH@Z)
Basic3D.lib(DBOMesh.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "bool __cdecl ValidateMeshForShader(struct sMesh *,unsigned long)" (?ValidateMeshForShader@@YA_NPAUsMesh@@K@Z)
Basic3D.lib(DBOFormat.obj) : error LNK2019: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A) referenced in function "public: bool __thiscall cSpecialEffect:arseEffect(bool,bool)" (?ParseEffect@cSpecialEffect@@QAE_N_N0@Z)
Basic3D.lib(CCollision.obj) : error LNK2001: unresolved external symbol "struct GlobStruct * g_pGlob" (?g_pGlob@@3PAUGlobStruct@@A)
Basic3D.lib(CObjectsC.obj) : error LNK2019: unresolved external symbol "bool __cdecl DoesFileExist(char *)" (?DoesFileExist@@YA_NPAD@Z) referenced in function "void __cdecl LoadEffect(unsigned long,int,int)" (?LoadEffect@@YAXKHH@Z)
Basic3D.lib(CommonC.obj) : error LNK2019: unresolved external symbol "void (__cdecl* g_Image_SetMipmapNum)(int)" (?g_Image_SetMipmapNum@@3P6AXH@ZA) referenced in function "void __cdecl ConstructorD3D(struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *)" (?ConstructorD3D@@YAXPAUHINSTANCE__@@000@Z)
Basic3D.lib(CommonC.obj) : error LNK2019: unresolved external symbol "void (__cdecl* g_Image_Destructor)(void)" (?g_Image_Destructor@@3P6AXXZA) referenced in function "void __cdecl ConstructorD3D(struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *)" (?ConstructorD3D@@YAXPAUHINSTANCE__@@000@Z)
Basic3D.lib(CommonC.obj) : error LNK2019: unresolved external symbol "void (__cdecl* g_Image_Constructor)(struct HINSTANCE__ *)" (?g_Image_Constructor@@3P6AXPAUHINSTANCE__@@@ZA) referenced in function "void __cdecl ConstructorD3D(struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *,struct HINSTANCE__ *)" (?ConstructorD3D@@YAXPAUHINSTANCE__@@000@Z)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncOn(void)" (?SyncOn@@YAXXZ) referenced in function "void __cdecl dbSyncOn(void)" (?dbSyncOn@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl SyncOff(void)" (?SyncOff@@YAXXZ) referenced in function "void __cdecl dbSyncOff(void)" (?dbSyncOff@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Sync(void)" (?Sync@@YAXXZ) referenced in function "void __cdecl dbSync(void)" (?dbSync@@YAXXZ)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl FastSync(void)" (?FastSync@@YAXXZ) referenced in function "void __cdecl dbFastSync(void)" (?dbFastSync@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Cls(void)" (?Cls@@YAXXZ) referenced in function "void __cdecl dbCLS(void)" (?dbCLS@@YAXXZ)
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)
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)
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)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl Print0(void)" (?Print0@@YAXXZ) referenced in function "void __cdecl dbPrint(void)" (?dbPrint@@YAXXZ)
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)
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)
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)
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)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl WaitForMouse(void)" (?WaitForMouse@@YAXXZ) referenced in function "void __cdecl dbWaitMouse(void)" (?dbWaitMouse@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl WaitForKey(void)" (?WaitForKey@@YAXXZ) referenced in function "void __cdecl dbWaitKey(void)" (?dbWaitKey@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToBack(void)" (?DrawToBack@@YAXXZ) referenced in function "void __cdecl dbDrawToBack(void)" (?dbDrawToBack@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawToFront(void)" (?DrawToFront@@YAXXZ) referenced in function "void __cdecl dbDrawToFront(void)" (?dbDrawToFront@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawSpritesFirst(void)" (?DrawSpritesFirst@@YAXXZ) referenced in function "void __cdecl dbDrawSpritesFirst(void)" (?dbDrawSpritesFirst@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl DrawSpritesLast(void)" (?DrawSpritesLast@@YAXXZ) referenced in function "void __cdecl dbDrawSpritesLast(void)" (?dbDrawSpritesLast@@YAXXZ)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "int __cdecl TimerL(void)" (?TimerL@@YAHXZ) referenced in function "int __cdecl dbTimer(void)" (?dbTimer@@YAHXZ)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl AlwaysActiveOff(void)" (?AlwaysActiveOff@@YAXXZ) referenced in function "void __cdecl dbAlwaysActiveOff(void)" (?dbAlwaysActiveOff@@YAXXZ)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl AlwaysActiveOn(void)" (?AlwaysActiveOn@@YAXXZ) referenced in function "void __cdecl dbAlwaysActiveOn(void)" (?dbAlwaysActiveOn@@YAXXZ)
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)
DarkSDK.lib(DarkSDKCore.obj) : error LNK2019: unresolved external symbol "void __cdecl PassDLLs(void)" (?PassDLLs@@YAXXZ) referenced in function "void __cdecl dbPassDLLs(void)" (?dbPassDLLs@@YAXXZ)
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)
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)
DarkSDK.lib(DarkSDK.obj) : error LNK2019: unresolved external symbol "int g_iDarkGameSDKQuit" (?g_iDarkGameSDKQuit@@3HA) referenced in function "bool __cdecl LoopSDK(void)" (?LoopSDK@@YA_NXZ)
Debug/test.exe : fatal error LNK1120: 61 unresolved externals
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 1st Dec 2005 08:41 Edited at: 1st Dec 2005 08:42
Could it be your headers and library files dont point to the correct place ? And could it also be because your using debug mode ?

It could also be cause by using the wrong version for your compiler. Are you using VS6 or 2003 ?

Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 1st Dec 2005 13:52
you might of forgotten to add the lib to the project, it may dislike the order of your libs in the project settings (thsi has been known to happen), you might be using the wrong lib for your compiler like s3 says - I dislike the blame on debug mode though - if there truely is a problem with some of darksdk and debug mode then that needs fixing asap - but I use debug mode every day with darksdk and have no problems - thankfully, I would be very VERY annoyed if i couldnt - you pay for a decent compiler mainly for the debugger, I dont expect to have to use message boxes to output debug data >.>

Anyway check some of those things and report back

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 1st Dec 2005 14:15
Less said about debug mode, the better

King3D
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: El Segundo, CA
Posted: 2nd Dec 2005 15:55
The paths to the SDK are correct. As you can see from the link errors, it finds the proper libraries.
King3D
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: El Segundo, CA
Posted: 2nd Dec 2005 16:45
I fixed the problem. I had to move the dark game sdk in front of a few other SDKs and it worked just fine. I am not sure what the issues are, but my plugins compile and dark game samples compile. I am now ready to get started on my shooter

Login to post a reply

Server time is: 2024-11-19 03:27:27
Your offset time is: 2024-11-19 03:27:27