Page 1 of 1

Problems compiling 4.0 release builds on windows

Posted: Sat Feb 11, 2017 6:19 pm
by xabis
Hello,

I am trying to test the 4.0 alpha branch. Since there are no published binaries available, I am building it myself.

I am able to build the DEBUG configuration just fine, but any of the RELEASE builds throw a linker error, which I have no idea how to get around. Any help would be appreciated! This is a win64 build using visual studio 2015. I am using x64 versions of the deps (fmod, ssl) and turning off openal.

I would like to test a release build specifically, because there are pretty bad performance problems using the debug version (very low fps) and want to compare.

Error LNK2019 unresolved external symbol "public: int __cdecl line_t::Index(void)const " (?Index@line_t@@QEBAHXZ) referenced in function "bool __cdecl P_ChangeSwitchTexture(struct side_t *,int,unsigned char,bool *)" (?P_ChangeSwitchTexture@@YA_NPEAUside_t@@HEPEA_N@Z) Zandronum D:\dev\src\zandronum-zdoom-sync\BUILD\src\p_switch.obj 1

Re: Problems compiling 4.0 release builds on windows

Posted: Sat Feb 11, 2017 7:11 pm
by xabis
Okay, I decided to try a win32 release build, and everything compiled fine.

Re: Problems compiling 4.0 release builds on windows

Posted: Sun Feb 12, 2017 1:37 pm
by Torr Samaho
xabis wrote: Error LNK2019 unresolved external symbol "public: int __cdecl line_t::Index(void)const " (?Index@line_t@@QEBAHXZ) referenced in function "bool __cdecl P_ChangeSwitchTexture(struct side_t *,int,unsigned char,bool *)" (?P_ChangeSwitchTexture@@YA_NPEAUside_t@@HEPEA_N@Z) Zandronum D:\dev\src\zandronum-zdoom-sync\BUILD\src\p_switch.obj 1
This should be fixed now.

Re: Problems compiling 4.0 release builds on windows

Posted: Wed Feb 15, 2017 4:56 pm
by Dragonfly
I've not been present on the Zandronum forums for a long time. I didn't know 4.0 was a thing! Is there any reason that 3.0 hasn't yet had a stable release if 4.0 is already in development?

Re: Problems compiling 4.0 release builds on windows

Posted: Wed Feb 15, 2017 8:15 pm
by Sean
Dragonfly wrote:I've not been present on the Zandronum forums for a long time. I didn't know 4.0 was a thing! Is there any reason that 3.0 hasn't yet had a stable release if 4.0 is already in development?
Because all 4.0 is is the latest commit of ZDoom merged with the latest commit of Zandronum. It's not really stable or tested in any way, and AFAIK 3.0 is top priority and is pretty close to release(TM).