Linux Compile Error in Condition.cpp SVN 4580-82
Posted: Fri Jan 13, 2012 8:02 pm
Looks like gcc 4.6.1 doesn't like something in the recent changes to Condition.cpp:
Let me know if you need more info about my build environment.
As a side note, it looks like things are really improving quickly with FreeOrion here in the last few months. Kudos!
Code: Select all
-----snip------
[ 3%] Building CXX object CMakeFiles/core_static.dir/universe/Condition.cpp.o
/home/eric/Downloads/freeorion.dev/FreeOrion/universe/Condition.cpp: In function ‘std::vector<const Condition::ConditionBase*> {anonymous}::FlattenAndNestedConditions(const std::vector<const Condition::ConditionBase*>&)’:
/home/eric/Downloads/freeorion.dev/FreeOrion/universe/Condition.cpp:60:17: error: expected primary-expression before ‘const’
/home/eric/Downloads/freeorion.dev/FreeOrion/universe/Condition.cpp:60:17: error: expected ‘)’ before ‘const’
/home/eric/Downloads/freeorion.dev/FreeOrion/universe/Condition.cpp:62:51: error: expected identifier before ‘->’ token
make[2]: *** [CMakeFiles/core_static.dir/universe/Condition.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Code: Select all
eric-CQ50-LM12 ~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
As a side note, it looks like things are really improving quickly with FreeOrion here in the last few months. Kudos!