Link Error in freeoriond due to 8033

Questions, problems and discussion about compiling FreeOrion.
Post Reply
Message
Author
Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Link Error in freeoriond due to 8033

#1 Post by Chriss » Fri Mar 13, 2015 7:35 pm

Code: Select all

Linking CXX executable ../freeoriond
CMakeFiles/freeoriond.dir/__/python/server/PythonServerWrapper.cpp.o: In function `(anonymous namespace)::GenerateSitRep(int, std::string const&, boost::python::dict const&, std::string const&)':
PythonServerWrapper.cpp:(.text+0x3a1): undefined reference to `CreateSitRep(std::string const&, std::string const&, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > const&)'
PythonServerWrapper.cpp:(.text+0x4c1): undefined reference to `CreateSitRep(std::string const&, std::string const&, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > const&)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
server/CMakeFiles/freeoriond.dir/build.make:399: die Regel für Ziel „freeoriond“ scheiterte
make[2]: *** [freeoriond] Fehler 1
CMakeFiles/Makefile2:329: die Regel für Ziel „server/CMakeFiles/freeoriond.dir/all“ scheiterte
make[1]: *** [server/CMakeFiles/freeoriond.dir/all] Fehler 2
Makefile:137: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
not 100% it's this commit, but seems to fit the change and the error message...
Attached patches are released under GPL 2.0 or later.

User avatar
Dilvish
AI Lead, Programmer
Posts: 4685
Joined: Sat Sep 22, 2012 6:25 pm

Re: Link Error in freeoriond due to 8033

#2 Post by Dilvish » Fri Mar 13, 2015 8:29 pm

ok, it was an easy fix:

Code: Select all

r8034 | dilvish-fo | 2015-03-13 13:28:23 -0700 (Fri, 13 Mar 2015) | 1 line
added FO_COMMON_API  to declaration of CreateSitRep, stemming from r8033  changes and needed for Linux
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Post Reply