I had the same problem compiling the svn tree today. Renamining linux to _linux in prep.h will give later on errors in sdk/configmanager.cpp . I simply renamed linux and unix to linux_a and unix_a in both files and compile was successfull.
diff -Naur trunk/src/include/prep.h trunk-fixed/src/include/prep.h
--- trunk/src/include/prep.h 2007-03-13 01:18:27.000000000 +0200
+++ trunk-fixed/src/include/prep.h 2007-03-13 00:42:57.000000000 +0200
@@ -56,11 +56,11 @@
const bool windows = (id == platform_windows);
const bool macos = (id == platform_macos);
- const bool linux = (id == platform_linux);
+ const bool linux_a = (id == platform_linux);
const bool freebsd = (id == platform_freebsd);
const bool netbsd = (id == platform_netbsd);
const bool openbsd = (id == platform_openbsd);
- const bool unix = (linux | freebsd | netbsd | openbsd);
+ const bool unix_a = (linux_a | freebsd | netbsd | openbsd);
const int bits = 8*sizeof(void*);
diff -Naur trunk/src/sdk/configmanager.cpp trunk-fixed/src/sdk/configmanager.cpp
--- trunk/src/sdk/configmanager.cpp 2007-03-13 01:14:29.000000000 +0200
+++ trunk-fixed/src/sdk/configmanager.cpp 2007-03-13 00:59:16.000000000 +0200
@@ -243,11 +243,11 @@
if(platform::windows)
info.append(_T("\n\t Windows "));
- if(platform::linux)
+ if(platform::linux_a)
info.append(_T("\n\t Linux "));
if(platform::macos)
info.append(_T("\n\t MacOS "));
- if(platform::unix)
+ if(platform::unix_a)
info.append(_T("\n\t Unix "));
info.append(platform::unicode ? _T("Unicode ") : _T("ANSI "));
I also uploaded the patch here ( i'm not sure if the pasted version will keep the tabs ):
http://cop.tfm.ro/files/codeblocks_compile_fix.diffUse it: get the svn tree
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunkand do:
patch p0 < codeblocks_compile_fix.diffBest regards,
Mihai (Cop) Moldovanu
TFM Group Software Romania