undefined reference to `FormatedDescriptionPropertyNames'

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

undefined reference to `FormatedDescriptionPropertyNames'

#1 Post by Nagilum »

I recently tried building SVN rev 6504.
The build works but linking freeorion fails:

Code: Select all

Linking CXX executable ../../freeorion
../../libfreeorionparse.so: undefined reference to `FormatedDescriptionPropertyNames(ValueRef::ReferenceType, std::vector<std::string, std::allocator<std::string> > const&)'
SVN rev 6491 still worked fine. I can try to narrow it down to a specific commit if needed.

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

Re: undefined reference to `FormatedDescriptionPropertyNames

#2 Post by Geoff the Medio »

That function has a definition in ValueRef.cpp. My guess is that it needs FO_COMMON_API at the start of the line (454) where it's declared in ValueRef.h. Try that and let me know?

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: undefined reference to `FormatedDescriptionPropertyNames

#3 Post by Nagilum »

Confirmed.
That solves the problem. :)
Please commit. ;)

Post Reply