Hi all,
I'm on a Linux plateform.
In the file 'src/include/prep.h', this code
const bool windows = (id == platform_windows);
const bool macos = (id == platform_macos);
const bool linux = (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);
product the error :
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT tinyxmlparser.lo -MD -MP -MF .deps/tinyxmlparser.Tpo -c tinyxmlparser.cpp -fPIC -DPIC -o .libs/tinyxmlparser.o
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT tinywxuni.lo -MD -MP -MF ".deps/tinywxuni.Tpo" -c -o tinywxuni.lo tinywxuni.cpp; \
then mv -f ".deps/tinywxuni.Tpo" ".deps/tinywxuni.Plo"; else rm -f ".deps/tinywxuni.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT tinywxuni.lo -MD -MP -MF .deps/tinywxuni.Tpo -c tinywxuni.cpp -fPIC -DPIC -o .libs/tinywxuni.o
../../../src/include/prep.h:59: error: expected unqualified-id before numeric constant
../../../src/include/prep.h:63: error: expected unqualified-id before numeric constant
If I rename the const 'linux' to '_linux' for example, and 'unix' to '_unix', there's no more problem here (but, consequently, the problem is an other side...).
Really strange, isn't it !?
TIA,
Best regard,
TSalm