Page 1 of 1
Getting C2601 error when building DSGame-server
Posted: Tue Apr 30, 2019 6:27 pm
by KingDragon64
I am building the Darkstar server in Visual Studio 2019 and I got DSConnect-server and DSSearch-server built, but when I build the DSGame-server it will give me C2601 errors on battleutils.cpp and has the error message, "local function definitions are illegal". I attached the output log and the error log. Thank you to anyone that can help me.
Re: Getting C2601 error when building DSGame-server
Posted: Tue Apr 30, 2019 7:01 pm
by whasf
Did you modify the source? I just compiled the game server and got no errors. I pulled latest as of this post. Those functions look to be pretty basic.
Re: Getting C2601 error when building DSGame-server
Posted: Wed May 01, 2019 1:13 am
by KingDragon64
I pulled the latest master and compiled it but I still got the same errors. Do you have different settings other then the default Visual Studio settings?
Re: Getting C2601 error when building DSGame-server
Posted: Wed May 01, 2019 7:49 am
by whasf
Nope I'm running stock VS2019 and C++
Re: Getting C2601 error when building DSGame-server
Posted: Thu May 02, 2019 4:54 am
by Delaide
Could there be some other dependency missing, or are you using a non-english based language?
I know there can be problems when you are running system local in Japanese.
Re: Getting C2601 error when building DSGame-server
Posted: Thu May 02, 2019 11:14 am
by KingDragon64
That is probably the problem, I'm running Windows 7 with a Japanese local, let me build it on a different computer to see if it will work.
Re: Getting C2601 error when building DSGame-server
Posted: Fri May 03, 2019 2:48 am
by KingDragon64
Ok I got it to build. I changed my locale to English (United States) and it built successfully. Thank you for everyone's help!
Re: Getting C2601 error when building DSGame-server
Posted: Fri May 03, 2019 3:42 am
by Delaide
Yeah, Japanese local changing the file path stuff to ¥ messes things up sometimes.
c:¥path¥to¥stuff = certain programs hate it!