What are the gcc versions on which spring compiles (where I can find such a list) ? The page http://springrts.com/wiki/Building_Spring_on_Linux does specify "4.x serie should be safe", but I have tried to compile with gcc 4.4 (centos 6.5, not my main system) and I got errors in rts/System/float3.h (easily fixable) and in rts/lib/assimp/code/BlenderScene.cpp (looks kind of ugly, did not try to fix it).
As a note, I was not even trying to compile to play online, just to check on the map loading speed problems that were reported on 0.96.
linux gcc versions that compile spring
Moderator: Moderators
Re: linux gcc versions that compile spring
GCC >=4.5~4.6 work
Last edited by jK on 07 Jan 2014, 17:24, edited 1 time in total.
Re: linux gcc versions that compile spring
gcc 4.8.2 works for me.
Re: linux gcc versions that compile spring
current development version checks for gcc >= 4.6
https://github.com/spring/spring/commit ... 7ffc1bdd4c
not sure if 4.5 works, if so, this check could be adjusted.
https://github.com/spring/spring/commit ... 7ffc1bdd4c
not sure if 4.5 works, if so, this check could be adjusted.
Re: linux gcc versions that compile spring
Just checked, 4.5.4 did not work due to some file in assimp (I guess code of 0.96 was not checking as I did not get any error at cmake). Think the check is correct.
Re: linux gcc versions that compile spring
I have successfully compiled with GCC 4.9.0 on linux x64