Getting C2601 error when building DSGame-server

Can't get the client or server set up? Ask here!
We're on Discord! https://discord.gg/4dgAzfC
Post Reply
KingDragon64
Posts: 4
Joined: Mon Apr 29, 2019 5:32 pm

Getting C2601 error when building DSGame-server

Post by KingDragon64 » Tue Apr 30, 2019 6:27 pm

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.
Attachments
Error Log.xlsx
(8.28 KiB) Downloaded 13 times
Output Log.docx
(7.23 KiB) Downloaded 20 times

User avatar
whasf
Site Admin
Posts: 1300
Joined: Thu Jul 19, 2012 9:11 pm

Re: Getting C2601 error when building DSGame-server

Post by whasf » Tue Apr 30, 2019 7:01 pm

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.
-- Whasf

KingDragon64
Posts: 4
Joined: Mon Apr 29, 2019 5:32 pm

Re: Getting C2601 error when building DSGame-server

Post by KingDragon64 » Wed May 01, 2019 1:13 am

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?

User avatar
whasf
Site Admin
Posts: 1300
Joined: Thu Jul 19, 2012 9:11 pm

Re: Getting C2601 error when building DSGame-server

Post by whasf » Wed May 01, 2019 7:49 am

Nope I'm running stock VS2019 and C++
-- Whasf

Delaide
Posts: 473
Joined: Sat Jun 14, 2014 8:58 am

Re: Getting C2601 error when building DSGame-server

Post by Delaide » Thu May 02, 2019 4:54 am

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.

KingDragon64
Posts: 4
Joined: Mon Apr 29, 2019 5:32 pm

Re: Getting C2601 error when building DSGame-server

Post by KingDragon64 » Thu May 02, 2019 11:14 am

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.

KingDragon64
Posts: 4
Joined: Mon Apr 29, 2019 5:32 pm

Re: Getting C2601 error when building DSGame-server

Post by KingDragon64 » Fri May 03, 2019 2:48 am

Ok I got it to build. I changed my locale to English (United States) and it built successfully. Thank you for everyone's help!

Delaide
Posts: 473
Joined: Sat Jun 14, 2014 8:58 am

Re: Getting C2601 error when building DSGame-server

Post by Delaide » Fri May 03, 2019 3:42 am

Yeah, Japanese local changing the file path stuff to ¥ messes things up sometimes.
c:¥path¥to¥stuff = certain programs hate it!

Post Reply