Page 1 of 1

Error building r134

Posted: Mon Jul 21, 2008 6:37
by Nash

Code: Select all

13>Linking...
13>a_bossbrain.obj : error LNK2019: unresolved external symbol "public: class ASpecialSpot * __thiscall DSpotState::GetNextInList(struct PClass const *,int)" (?GetNextInList@DSpotState@@QAEPAVASpecialSpot@@PBUPClass@@H@Z) referenced in function "void __fastcall A_BrainSpit(class AActor *)" (?A_BrainSpit@@YIXPAVAActor@@@Z)
13>a_bossbrain.obj : error LNK2019: unresolved external symbol "public: static class DSpotState * __fastcall DSpotState::GetSpotState(bool)" (?GetSpotState@DSpotState@@SIPAV1@_N@Z) referenced in function "void __fastcall A_BrainSpit(class AActor *)" (?A_BrainSpit@@YIXPAVAActor@@@Z)
13>a_dsparil.obj : error LNK2001: unresolved external symbol "public: static class DSpotState * __fastcall DSpotState::GetSpotState(bool)" (?GetSpotState@DSpotState@@SIPAV1@_N@Z)
13>a_hereticweaps.obj : error LNK2001: unresolved external symbol "public: static class DSpotState * __fastcall DSpotState::GetSpotState(bool)" (?GetSpotState@DSpotState@@SIPAV1@_N@Z)
13>a_dsparil.obj : error LNK2001: unresolved external symbol "public: static struct PClass ASpecialSpot::_StaticType" (?_StaticType@ASpecialSpot@@2UPClass@@A)
13>a_hereticweaps.obj : error LNK2001: unresolved external symbol "public: static struct PClass ASpecialSpot::_StaticType" (?_StaticType@ASpecialSpot@@2UPClass@@A)
13>a_dsparil.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ASpecialSpot::Destroy(void)" (?Destroy@ASpecialSpot@@UAEXXZ)
13>a_hereticweaps.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ASpecialSpot::Destroy(void)" (?Destroy@ASpecialSpot@@UAEXXZ)
13>a_dsparil.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ASpecialSpot::BeginPlay(void)" (?BeginPlay@ASpecialSpot@@UAEXXZ)
13>a_hereticweaps.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ASpecialSpot::BeginPlay(void)" (?BeginPlay@ASpecialSpot@@UAEXXZ)
13>a_dsparil.obj : error LNK2019: unresolved external symbol "public: class ASpecialSpot * __thiscall DSpotState::GetSpotWithMinDistance(struct PClass const *,int,int,int)" (?GetSpotWithMinDistance@DSpotState@@QAEPAVASpecialSpot@@PBUPClass@@HHH@Z) referenced in function "void __fastcall P_DSparilTeleport(class AActor *)" (?P_DSparilTeleport@@YIXPAVAActor@@@Z)
13>a_hereticweaps.obj : error LNK2019: unresolved external symbol "public: class ASpecialSpot * __thiscall DSpotState::GetRandomSpot(struct PClass const *,bool)" (?GetRandomSpot@DSpotState@@QAEPAVASpecialSpot@@PBUPClass@@_N@Z) referenced in function "protected: virtual bool __thiscall AMace::DoRespawn(void)" (?DoRespawn@AMace@@MAE_NXZ)
13>D:\Games\GZDoom\gzdoom.exe : fatal error LNK1120: 7 unresolved externals
13>Build log was saved at "file://d:\Projects\Game Projects\C++ Projects\doom\gzdoom\trunk\Release\BuildLog.htm"
13>zdoom - 13 error(s), 0 warning(s)
========== Build: 12 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any band-aid fixes so that it can be compiled and uploaded?

Posted: Mon Jul 21, 2008 8:01
by Graf Zahl
Sorry, apparently I committed before saving the project file. Unfortunately VC++ doesn't do that automatically.

Posted: Mon Jul 21, 2008 10:48
by Enjay
When building r135 (which still reports itself as 134 for some reason - and I redownloaded twice to check) I get these linking warnings with a debug build, but not a release build:

Code: Select all

snes_spc.lib(SPC_Filter.obj) : warning LNK4217: locally defined symbol __wassert imported in function "public: void __thiscall SPC_Filter::run(short *,int)" (?run@SPC_Filter@@QAEXPAFH@Z)
snes_spc.lib(SNES_SPC_misc.obj) : warning LNK4049: locally defined symbol __wassert imported
snes_spc.lib(SNES_SPC.obj) : warning LNK4049: locally defined symbol __wassert imported
snes_spc.lib(SPC_DSP.obj) : warning LNK4049: locally defined symbol __wassert imported

Posted: Mon Jul 21, 2008 14:16
by Graf Zahl
Me, too. They are harmless but can't be removed without compromising the error checking.