compile errors w/ ShipDesign
Posted: Thu May 30, 2013 6:13 pm
Hi, so today I'm getting compile errors apparently related to ShipDesign.cpp and/or Condition.cpp. I'm not sure what's up though since it looks like neither of those was touched for over a week. It's been a few days or so since I last compiled, but I thought it was within the past week, while sorting out the issue with Version.cpp.
Later today I'll try to step through revisions to see where the trouble starts, but just in case anything comes to mind for someone, here's the errors I'm getting (and I already tried clearing out all cmake cache files):
Later today I'll try to step through revisions to see where the trouble starts, but just in case anything comes to mind for someone, here's the errors I'm getting (and I already tried clearing out all cmake cache files):
Code: Select all
FO@amber:~/Downloads/FreeOrion$ make -j2
[ 1%] Building CXX object CMakeFiles/core.dir/universe/Condition.cpp.o
[ 16%] Built target parse
[ 17%] Built target ltdl
[ 23%] Built target log4cpp
[ 24%] Building CXX object CMakeFiles/core.dir/universe/PopCenter.cpp.o
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3215:69: error: incomplete type ‘ShipDesign’ used in nested name specifier
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In function ‘int {anonymous}::NumberOnQueue(const ProductionQueue&, BuildType, int, const string&, int)’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3229:34: error: incomplete type ‘ShipDesign’ used in nested name specifier
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3235:80: error: ‘GetShipDesign’ was not declared in this scope
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3236:50: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘virtual void Condition::Enqueued::Eval(const ScriptingContext&, Condition::ObjectSet&, Condition::ObjectSet&, Condition::SearchDomain) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3304:77: error: incomplete type ‘ShipDesign’ used in nested name specifier
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘virtual bool Condition::Enqueued::Match(const ScriptingContext&) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3428:73: error: incomplete type ‘ShipDesign’ used in nested name specifier
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘virtual bool Condition::DesignHasHull::Match(const ScriptingContext&) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3800:27: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘bool {anonymous}::DesignHasPartSimpleMatch::operator()(const UniverseObject*) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3850:59: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘bool {anonymous}::DesignHasPartClassSimpleMatch::operator()(const UniverseObject*) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3975:59: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3978:21: error: expected primary-expression before ‘const’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3978:21: error: expected ‘)’ before ‘const’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:3979:25: error: ‘part_type’ was not declared in this scope
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘virtual bool Condition::PredefinedShipDesign::Match(const ScriptingContext&) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:4100:25: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:4104:39: error: invalid use of incomplete type ‘const class ShipDesign’
In file included from /home/FO/Downloads/FreeOrion/universe/Fleet.h:5:0,
from /home/FO/Downloads/FreeOrion/universe/Condition.cpp:7:
/home/FO/Downloads/FreeOrion/universe/Universe.h:30:7: error: forward declaration of ‘const class ShipDesign’
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘bool {anonymous}::NumberedShipDesignSimpleMatch::operator()(const UniverseObject*) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:4135:32: error: incomplete type ‘ShipDesign’ used in nested name specifier
/home/FO/Downloads/FreeOrion/universe/Condition.cpp: In member function ‘virtual bool Condition::PredefinedShipDesign::Match(const ScriptingContext&) const’:
/home/FO/Downloads/FreeOrion/universe/Condition.cpp:4105:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [CMakeFiles/core.dir/universe/Condition.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 27%] Built target pagedgeometry
make[1]: *** [CMakeFiles/core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 52%] Built target GiGi
make: *** [all] Error 2