compile problem with [5959]

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
User avatar
Dilvish
AI Lead, Programmer
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

compile problem with [5959]

#1 Post by Dilvish » Sun Apr 07, 2013 5:37 pm

It does compile fine with -fpermissive. Even then, though, it still only gives me warnings about CreatePlanet; I can't figure out why it's not giving me the same warnings about CreateSystem and the others.

Code: Select all

Building CXX object CMakeFiles/core_static.dir/util/SerializeModeratorAction.cpp.o
Building CXX object CMakeFiles/core_static.dir/util/SerializeOrderSet.cpp.o
util/SerializeModeratorAction.cpp:76:119: error: duplicate explicit instantiation of ‘void Moderator::CreatePlanet::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_oarchive]’ [-fpermissive]
util/SerializeModeratorAction.cpp:77:119: error: duplicate explicit instantiation of ‘void Moderator::CreatePlanet::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_iarchive]’ [-fpermissive]
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12496
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile problem with [5959]

#2 Post by Geoff the Medio » Sun Apr 07, 2013 6:36 pm

Should be fixed.

AndrewW
Juggernaut
Posts: 789
Joined: Mon Feb 04, 2013 10:15 pm

Re: compile problem with [5959]

#3 Post by AndrewW » Sun Apr 07, 2013 8:17 pm

[5961] looks like the same problem:

Code: Select all

[ 27%] Building CXX object CMakeFiles/core_static.dir/util/SerializeModeratorAction.cpp.o
/home/andrew/freeorion/FreeOrion/util/SerializeModeratorAction.cpp:76:119: error: duplicate explicit instantiation of 'void Moderator::CreatePlanet::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_oarchive]' [-fpermissive]
/home/andrew/freeorion/FreeOrion/util/SerializeModeratorAction.cpp:77:119: error: duplicate explicit instantiation of 'void Moderator::CreatePlanet::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_iarchive]' [-fpermissive]
make[2]: *** [CMakeFiles/core_static.dir/util/SerializeModeratorAction.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_static.dir/all] Error 2
make: *** [all] Error 2
Trying with [5962] now.

AndrewW
Juggernaut
Posts: 789
Joined: Mon Feb 04, 2013 10:15 pm

Re: compile problem with [5959]

#4 Post by AndrewW » Sun Apr 07, 2013 10:43 pm

Ok, [5962] cleared this up for me at least.

Post Reply