Page 1 of 1

Can't compile r112 :(

Posted: Mon Jun 02, 2008 22:01
by Nash

Code: Select all

4>src/svnrevision_gz.h updated to revision 112.
4>Linking...
4>p_pillar.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_spec.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>po_man.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>dsectoreffect.obj : error LNK2019: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z) referenced in function "public: __thiscall DMovingFloor::DMovingFloor(struct sector_t *)" (??0DMovingFloor@@QAE@PAUsector_t@@@Z)
4>p_3dmidtex.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_floor.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_linkedsectors.obj : error LNK2001: unresolved external symbol "void __fastcall setinterpolation(enum EInterpType,void *,bool)" (?setinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>t_func.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_floor.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_linkedsectors.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_spec.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>po_man.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>dsectoreffect.obj : error LNK2019: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z) referenced in function "public: virtual void __thiscall DSectorEffect::Destroy(void)" (?Destroy@DSectorEffect@@UAEXXZ)
4>p_3dmidtex.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_ceiling.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>p_doors.obj : error LNK2001: unresolved external symbol "void __fastcall stopinterpolation(enum EInterpType,void *,bool)" (?stopinterpolation@@YIXW4EInterpType@@PAX_N@Z)
4>g_level.obj : error LNK2019: unresolved external symbol "void __fastcall SerializeInterpolations(class FArchive &)" (?SerializeInterpolations@@YIXAAVFArchive@@@Z) referenced in function "void __fastcall G_SerializeLevel(class FArchive &,bool)" (?G_SerializeLevel@@YIXAAVFArchive@@_N@Z)
4>p_setup.obj : error LNK2019: unresolved external symbol "void __fastcall clearinterpolations(void)" (?clearinterpolations@@YIXXZ) referenced in function "void __fastcall P_SetupLevel(char *,int)" (?P_SetupLevel@@YIXPADH@Z)
4>p_tick.obj : error LNK2019: unresolved external symbol "void __fastcall updateinterpolations(void)" (?updateinterpolations@@YIXXZ) referenced in function "void __fastcall P_Ticker(void)" (?P_Ticker@@YIXXZ)
4>r_main.obj : error LNK2019: unresolved external symbol "void __fastcall dointerpolations(int)" (?dointerpolations@@YIXH@Z) referenced in function "void __fastcall R_SetupFrame(class AActor *)" (?R_SetupFrame@@YIXPAVAActor@@@Z)
4>r_main.obj : error LNK2019: unresolved external symbol "void __fastcall restoreinterpolations(void)" (?restoreinterpolations@@YIXXZ) referenced in function "void __fastcall R_RenderActorView(class AActor *,bool)" (?R_RenderActorView@@YIXPAVAActor@@_N@Z)
4>gl_scene.obj : error LNK2001: unresolved external symbol "void __fastcall restoreinterpolations(void)" (?restoreinterpolations@@YIXXZ)
4>gl_dynlight.obj : error LNK2001: unresolved external symbol "class TArray<struct PClass *,struct PClass *> DehackedPickups" (?DehackedPickups@@3V?$TArray@PAUPClass@@PAU1@@@A)
4>gl_dynlight.obj : error LNK2001: unresolved external symbol "public: static struct FState * ADehackedPickup::States" (?States@ADehackedPickup@@2PAUFState@@A)
4>D:\Games\GZDoom\gzdoom.exe : fatal error LNK1120: 9 unresolved externals
4>Build log was saved at "file://d:\Projects\Game Projects\C++ Projects\doom\gzdoom\trunk\Release\BuildLog.htm"
4>zdoom - 25 error(s), 0 warning(s)
========== Build: 3 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========
Is this easily fixable, or do I have to wait for you to fix it in the next commit?

Posted: Mon Jun 02, 2008 23:55
by Graf Zahl
Just add r_interpolate.cpp to the project. I did the last 2 commits for Linux testing and the VC project file was not updated for them.

Posted: Tue Jun 03, 2008 0:01
by Enjay
Graf Zahl wrote:Just
There's that word again. ;)

Where/how do I add it?

Posted: Tue Jun 03, 2008 3:44
by Nash
Graf, it's still not compiling. I added the header and the source into the "Render Core" filter of the project... is that the correct place to add them?

Code: Select all

10>gl_dynlight.obj : error LNK2001: unresolved external symbol "class TArray<struct PClass *,struct PClass *> DehackedPickups" (?DehackedPickups@@3V?$TArray@PAUPClass@@PAU1@@@A)
10>gl_dynlight.obj : error LNK2001: unresolved external symbol "public: static struct FState * ADehackedPickup::States" (?States@ADehackedPickup@@2PAUFState@@A)
10>D:\Games\GZDoom\gzdoom.exe : fatal error LNK1120: 2 unresolved externals

Posted: Tue Jun 03, 2008 13:23
by Gez
Added interpolate.cpp to the project by comparing to the ZDoom project file, but still getting bugs:

Code: Select all

4>snes_spc.lib(SPC_Filter.obj) : warning LNK4217: symbole défini localement __wassert importé dans la fonction "public: void __thiscall SPC_Filter::run(short *,int)" (?run@SPC_Filter@@QAEXPAFH@Z)
4>snes_spc.lib(SNES_SPC_misc.obj) : warning LNK4049: symbole défini localement __wassert importé
4>snes_spc.lib(SNES_SPC.obj) : warning LNK4049: symbole défini localement __wassert importé
4>snes_spc.lib(SPC_DSP.obj) : warning LNK4049: symbole défini localement __wassert importé
4>gl_dynlight.obj : error LNK2001: symbole externe non résolu "class TArray<struct PClass *,struct PClass *> DehackedPickups" (?DehackedPickups@@3V?$TArray@PAUPClass@@PAU1@@@A)
4>gl_dynlight.obj : error LNK2001: symbole externe non résolu "public: static struct FState * ADehackedPickup::States" (?States@ADehackedPickup@@2PAUFState@@A)
The "locally defined symbol __wassert imported in function "public: void __thiscall SPC_Filter::run(short *,int)" (?run@SPC_Filter@@QAEXPAFH@Z)" thing bothers me. I don't even care about SNES music files.

Edit: By setting the project in release mode, I got rid of that SNES error.

To get rid of the DehackedPickup nonsense in dynamic lights, I've commented stuff out like a barbarian.

Code: Select all

//extern TArray<PClass *> DehackedPickups;
/*
class ADehackedPickup : public AInventory
{
	DECLARE_ACTOR (ADehackedPickup, AInventory)
};
*/
inline const PClass * GetRealType(const PClass * ti)
{
	if (-1) // GetDefaultByType(ti)->SpawnState == &ADehackedPickup::States[0])
	{
		return NULL; // DehackedPickups[GetDefaultByType(ti)->health];
	}
	return ti;
}
Ugly, but I was at a loss how to fix that. I promise I won't use Dehacked pickups with dynamic lights attached to them or whatever until there's a proper fix.

And now it compiles and I can port the mouse input fix from ZDoom. :)

Posted: Tue Jun 03, 2008 14:52
by Graf Zahl
I already fixed it for real but I won't commit until later this evening