Page 1 of 1
Compiling With Visual Studio
Posted: 18 Apr 2012, 07:59
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

Re: Compiling With Visual Studio
Posted: 18 Apr 2012, 09:17
by Beherith
Now the third time: comment out all of the following:
ENTER_SYNCED_CODE();
LEAVE_SYNCED_CODE();
Re: Compiling With Visual Studio
Posted: 18 Apr 2012, 17:12
by JBProgrammer
i did it and finally compile it, but have this problem when perform Spring.exe:
failed to load font : fonts/freesansbold.otf
Re: Compiling With Visual Studio
Posted: 18 Apr 2012, 18:38
by Beherith
Download a spring portable archive from the download button above, and copy all the files except spring.exe to your ./dist/ folder.
Re: Compiling With Visual Studio
Posted: 19 Apr 2012, 17:47
by JBProgrammer
I think you are fantastic, Beherith.
Finally i solved the problem.

Re: Compiling With Visual Studio
Posted: 20 Apr 2012, 01:23
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?
Re: Compiling With Visual Studio
Posted: 20 Apr 2012, 07:54
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.
Re: Compiling With Visual Studio
Posted: 20 Apr 2012, 13:14
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.