FreeOrion

Forums for the FreeOrion project
It is currently Wed Jun 19, 2013 7:06 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 33 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Dev-C++ doesn't compile ClientUniverse.cpp
PostPosted: Fri Aug 01, 2003 11:47 pm 
Offline
Space Floater

Joined: Fri Aug 01, 2003 3:34 pm
Posts: 16
Hi!

I tried to compile AIClient.dev and server.dev. But in the middle of the compiling process get I an error. It's at the both files the same:

Code:
../../universe/ClientUniverse.cpp: In member function `int
   ClientUniverse::Insert(UniverseObject*, int)':

../../universe/ClientUniverse.cpp:541: `INVALID_OBJECT_ID' undeclared (first
   use this function)
../../universe/ClientUniverse.cpp:541: (Each undeclared identifier is reported
   only once for each function it appears in.)

make.exe: *** [../../objs/AI/ClientUniverse.o] Error 1


What can I do?

Thanks,
pmw


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 2:07 am 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
I have a fix for this locally, but I haven't commited it yet.

Change the affected IDs to:

UniverseObject::INVALID_OBJECT_ID

That should make it compile properly

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 10:23 am 
Offline
Space Floater

Joined: Fri Aug 01, 2003 3:34 pm
Posts: 16
Hi!

Thx for the tip. I have already compiled Server.dev and AIClient.dev. But while compiling HumanClient.dev get I a new error.

Code:
../../UI/ServerConnectWnd.cpp: In constructor

   `ServerConnectWnd::ServerConnectWnd(int, int, int, int)':
../../UI/ServerConnectWnd.cpp:58: cannot allocate an object of type `
   GG::TextControl'
../../UI/ServerConnectWnd.cpp:58:   because the following virtual functions are
   abstract:
C:/Programme/Dev-Cpp/include/GGTextControl.h:86:    virtual void
   GG::TextControl::SetText(const std::string&)
C:/Programme/Dev-Cpp/include/GGControl.h:52:    virtual int GG::Control::Render()

make.exe: *** [../../objs/ServerConnectWnd.o] Error 1


What can I do to reprair the error?
pmw


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 3:39 pm 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
GG::TextControl is apparently an abstract class, so if you're trying to do something like this:

GG::TextControl* control = new GG::TextControl()

then it wont work. You have to instantiate a subclass of GG::TextControl. I suspect Zach can help fix this one as its probably his fault :wink:

_________________
Empire Team Lead


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 3:57 pm 
Offline
Space Floater

Joined: Fri Aug 01, 2003 3:34 pm
Posts: 16
Thx for your answer, but I don't unstand what I have to change in the sourcecode. Can you explain it for me, please.

Thx
pmw


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 4:26 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
pmw wrote:
Thx for your answer, but I don't unstand what I have to change in the sourcecode. Can you explain it for me, please.

Thx
pmw


You have to check out the latest version of GG and rebuild it (if you're using Linux), or check out the latest version of WindowsKit.zip and put GiGi*.dll in the root of your FreeOrion directory tree. TextControl is no longer abstract.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 4:30 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Hmm... It seems like there was a conflict when somebody commited the new ClientApp.dev to CVS, as this files contains two versions...

I'm using Linux, so i can't test it. But I suggest you try the following:

Open HumanClient.dev with wordpad (make a backup), and then
  1. delete everything from the beginning of the file to a line thats simple a list of equal-signs: ' =======' (line 1447 on my version). (Also delete the '====' line)
  2. delete everything from a line that says '>>>>>>> 1.9' (including this line) till the end.
Maybe this fixes it... If not, try deleting only the >>>>>> line in step 2, do step 1 as usual

BTW: Does nobody use Dev-Cpp anymore? It should choke at this erroneous .dev file, shouldn't it?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 4:34 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
I have a new version of the dev file to commit hopefully today or tomorrow. it will include several new files, including some preliminary galaxy map stuff (yay!)...this should fix everything up to now.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 5:04 pm 
Offline
Space Floater

Joined: Fri Aug 01, 2003 3:34 pm
Posts: 16
Hi!

I think I have the latest version of all files, because I have downloaded them yesterday.

The modification of HumanClient.dev didn't fix the error.

I use WinXP with Dev-C++ 4.9.8.0.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 6:24 pm 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
tzlaine wrote:
pmw wrote:
Thx for your answer, but I don't unstand what I have to change in the sourcecode. Can you explain it for me, please.

Thx
pmw


You have to check out the latest version of GG and rebuild it (if you're using Linux), or check out the latest version of WindowsKit.zip and put GiGi*.dll in the root of your FreeOrion directory tree. TextControl is no longer abstract.


Hey Zach, do we need to check out new GG headers if we're using windows, or are these in the windowskit.zip?

JB

_________________
Empire Team Lead


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 6:50 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
Yoghurt wrote:
Hmm... It seems like there was a conflict when somebody commited the new ClientApp.dev to CVS, as this files contains two versions...

I'm using Linux, so i can't test it. But I suggest you try the following:

Open HumanClient.dev with wordpad (make a backup), and then
  1. delete everything from the beginning of the file to a line thats simple a list of equal-signs: ' =======' (line 1447 on my version). (Also delete the '====' line)
  2. delete everything from a line that says '>>>>>>> 1.9' (including this line) till the end.
Maybe this fixes it... If not, try deleting only the >>>>>> line in step 2, do step 1 as usual

BTW: Does nobody use Dev-Cpp anymore? It should choke at this erroneous .dev file, shouldn't it?


I'm using version 1.16 and it works fine. Like I said, I'll be making some commits soon, but if I commit them now it will break the app....so have patience.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2003 9:41 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
jbarcz1 wrote:
tzlaine wrote:
pmw wrote:
Thx for your answer, but I don't unstand what I have to change in the sourcecode. Can you explain it for me, please.

Thx
pmw


You have to check out the latest version of GG and rebuild it (if you're using Linux), or check out the latest version of WindowsKit.zip and put GiGi*.dll in the root of your FreeOrion directory tree. TextControl is no longer abstract.


Hey Zach, do we need to check out new GG headers if we're using windows, or are these in the windowskit.zip?

JB


Yeah, you need to check out the headers.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 03, 2003 8:52 am 
Offline
Space Floater

Joined: Fri Aug 01, 2003 3:34 pm
Posts: 16
Were and how can I do this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 03, 2003 5:19 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
pmw wrote:
Were and how can I do this?


http://sourceforge.net/cvs/?group_id=84040


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 03, 2003 9:38 pm 
Offline
Space Squid

Joined: Fri Jun 27, 2003 6:23 pm
Posts: 66
Location: Milkyway
I have the same problem like PMW - I cannot compile the humanclient since 1 moth and I tried and tried and asked. I posted my problem here: http://www.artclusta.com/bb/viewtopic.php?t=45&start=15


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 33 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: AhrefsBot 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