Compiling With Visual Studio

Compiling With Visual Studio

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
JBProgrammer
Posts: 9
Joined: 11 Apr 2012, 10:36

Compiling With Visual Studio

Post by JBProgrammer »

Hi.
i read all of "Compiling With Visual Studio" and do everything it said, but still have some problem.
I used Windows 7 64bit and VS 2005.
it gives me these errors and 370 Warnings:
error C2653 : 'CSyncChecker': is not a class or namespace name.
The symbol CSyncChecker is not defind.
they are in PreGame.cpp and Game.cpp

Please help me :cry: :cry: :cry:
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Compiling With Visual Studio

Post by Beherith »

Now the third time: comment out all of the following:

ENTER_SYNCED_CODE();
LEAVE_SYNCED_CODE();
JBProgrammer
Posts: 9
Joined: 11 Apr 2012, 10:36

Re: Compiling With Visual Studio

Post by JBProgrammer »

i did it and finally compile it, but have this problem when perform Spring.exe:

failed to load font : fonts/freesansbold.otf
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Compiling With Visual Studio

Post by Beherith »

Download a spring portable archive from the download button above, and copy all the files except spring.exe to your ./dist/ folder.
JBProgrammer
Posts: 9
Joined: 11 Apr 2012, 10:36

Re: Compiling With Visual Studio

Post by JBProgrammer »

I think you are fantastic, Beherith.
Finally i solved the problem. :mrgreen: :mrgreen: :mrgreen:
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Compiling With Visual Studio

Post by jK »

Beherith wrote:Now the third time: comment out all of the following:

ENTER_SYNCED_CODE();
LEAVE_SYNCED_CODE();
Can you make a fork/commit with including CSyncChecker in all files where the error occurs?
User avatar
Deadnight Warrior
Posts: 183
Joined: 08 Jun 2009, 17:59

Re: Compiling With Visual Studio

Post by Deadnight Warrior »

I can't say about the latest develop branch as I haven't compiled Spring in like 3 weeks, but the version from around end of march also had those ENTER_SYNCED_CODE(); and LEAVE_SYNCED_CODE(); in Game.cpp ("Release with Error catching" configuration, aka the default release build)

VS2008 compiled it without having to comment anything, and I doubt that zerver (who uses VS2005) has to comment those lines to compile Spring as well as he would have told me.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Compiling With Visual Studio

Post by zerver »

Deadnight is dead right... The "Debug" profile was missing the "SYNCCHECK" preprocessor definition. It has been fixed now, but I do not think you want to compile debug anyway - it is too slow to be useful for (almost) anything. Choose "Release+MT with error catching" instead.
Post Reply

Return to “Help & Bugs”