Questions, problems and discussion about compiling FreeOrion.
Moderator: Oberlus
vace
Space Krill
Posts: 3 Joined: Tue Apr 04, 2006 5:32 am
#1
Post
by vace » Tue Apr 04, 2006 5:40 am
Hi.
I tried to compile GiGi which I downloaded from svn just now, but I am getting syntax errors:
Code: Select all
GG/Spin.h:503: error: syntax error before `>' token
GG/Spin.h:504: error: syntax error before `>' token
GG/Spin.h:506: error: syntax error before `>' token
GG/Spin.h:508: error: syntax error before `>' token
GG/Spin.h:511: error: syntax error before `>' token
I am using gcc 3.3.6. Should this this version work, or do I need something else? If it's not my compiler, what else could be causing this?
Thanks in advance.
Val
Geoff the Medio
Programming, Design, Admin
Posts: 13587 Joined: Wed Oct 08, 2003 1:33 am
Location: Munich
#2
Post
by Geoff the Medio » Tue Apr 04, 2006 7:32 am
This has shown up before. See here:
viewtopic.php?p=22364
You might want to check the versions of compilers with which everything has been compiled, particularly Boost, to ensure there are no mismatches.
vace
Space Krill
Posts: 3 Joined: Tue Apr 04, 2006 5:32 am
#3
Post
by vace » Mon Apr 10, 2006 1:20 am
Well, I have made sure that I only have gcc 3.3.6 on my system (nothing else is installed) and I recompiled DevIL myself, which before was installed from a slackpack. I also recompiled boost, but when I tried to compile GiGi, exactly the same error has occured.
This doesn't look like a compiler incompatability...
Has anyone sucessfully compiled GiGi with 3.3.6?
montemj
Space Krill
Posts: 2 Joined: Fri Apr 07, 2006 6:45 pm
#4
Post
by montemj » Mon Apr 10, 2006 3:18 am
I used 3.4.4 to compile it, and everything compiled successfully. I suggest you get at least GCC 3.4.4 to compile this if at all possible.
MJM
vace
Space Krill
Posts: 3 Joined: Tue Apr 04, 2006 5:32 am
#5
Post
by vace » Thu Apr 13, 2006 4:20 am
Aha! Upgrading to gcc 3.4.5 solved the problem. GiGi has compiled and I am now in the process of compiling FreeOrion.
Thanks for the help.