FreeOrion

Forums for the FreeOrion project
It is currently Fri May 24, 2013 11:44 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error on CUIControls.cpp
PostPosted: Fri Mar 14, 2008 10:08 am 
Offline
Space Squid
User avatar

Joined: Tue Jan 29, 2008 2:06 pm
Posts: 64
Location: Oxford (UK)
Today, after an update, if I run scons I obtain:

Code:
g++ -o UI/CUIControls-human.o -c -pthread -g -O2 -Wall -D_GNU_SOURCE=1 -D_REENTRANT -DFREEORION_LINUX -DENABLE_BINRELOC -DFREEORION_BUILD_HUMAN -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/graphviz -Inetwork UI/CUIControls.cpp
UI/CUIControls.cpp: In member function 'virtual void CUILinkTextMultiEdit::MouseHere(const GG::Pt&, GG::Flags<GG::ModKey>)':
UI/CUIControls.cpp:834: error: 'ScrollPosition' was not declared in this scope
UI/CUIControls.cpp: In member function 'virtual void CUILinkTextMultiEdit::SetLinkedText(const std::string&)':
UI/CUIControls.cpp:866: error: 'PreserveTextPositionOnNextSetText' is not a member of 'GG::MultiEdit'
scons: *** [UI/CUIControls-human.o] Error 1
scons: building terminated because of errors.


I can't understand the two errors. The first one is:

ScrollPosition() is a protected member of GG's MultiEdit. The error is in class CUILinkTextMultiEdit, which publicly inherites from TextLinker and CUIMultiEdit, the latter publicly inheriting from GG's MultiEdit.
Thus the protected inheritance SHOULD pass throught the various inheritances, and CUILinkTextMultiEdit SHOULD see ScrollPosition() as it's own member.
Then why the 'ScrollPosition' was not declared in this scope error?

The same happens for the second error: PreserveTextPositionOnNextSetText() is a member of GG's MultiEdit, but it isn't recognized by CUILinkTextMultiEdit.

Any ideas?

_________________
The only difference between a suicide and a martyrdom is press coverage.
- Chuck Palahniuk (Survivor)

Ubuntu 7.10/Windows Vista/Windows XP (VMWare)/Windows NT 4 (VMWare) on Intel Centrino Duo T5500@1.66GHz with NVidia GeForce GO 7600


Top
 Profile  
 
 Post subject: Re: Error on CUIControls.cpp
PostPosted: Fri Mar 14, 2008 11:33 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7898
Location: Vancouver, BC
[guess]Perhaps you need to scons install GiGi after updating from svn?[/guess]


Top
 Profile  
 
 Post subject: Re: Error on CUIControls.cpp
PostPosted: Fri Mar 14, 2008 12:00 pm 
Offline
Space Squid
User avatar

Joined: Tue Jan 29, 2008 2:06 pm
Posts: 64
Location: Oxford (UK)
Geoff the Medio wrote:
[guess]Perhaps you need to scons install GiGi after updating from svn?[/guess]


Ops you're right :D
Sorry, I thought that freeorion looked for the headers directly in the GG subdir, and not in the place where they get installed :) All works now ;)

_________________
The only difference between a suicide and a martyrdom is press coverage.
- Chuck Palahniuk (Survivor)

Ubuntu 7.10/Windows Vista/Windows XP (VMWare)/Windows NT 4 (VMWare) on Intel Centrino Duo T5500@1.66GHz with NVidia GeForce GO 7600


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group