It is currently Fri Mar 29, 2024 1:27 pm


All times are UTC [ DST ]


Forum rules


When asking for help, make sure you are using the latest stable version of Daphne with the latest DaphneLoader. "For sale", auction, or ebay links do not belong here. Legal discussion is discouraged.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Linux Compile Error in pioneer.cpp
PostPosted: Thu Jul 20, 2006 11:10 pm 
Registered User
Registered  User

Joined: Thu Jul 20, 2006 10:57 pm
Posts: 2
Location: Maryland, US
Hi,

I have a Gentoo Linux laptop that I'm trying to compile Daphne for. Gentoo's Portage package management system provides an ebuild for building Daphne 0.99.6 and in their bugzilla someone made an ebuild for 0.99.7. Both builds fail with the same error. I then tried to download the latest source here and build it manually, and it failed with the same error.

Code:
cd ldp-out && make
make[1]: Entering directory `/root/install/apps/daphne/daphne/src/ldp-out'
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Winline -c pioneer.cpp -o pioneer.o
pioneer.h:50: error: extra qualification 'pioneer::' on member 'getstring'
make[1]: *** [pioneer.o] Error 1
make[1]: Leaving directory `/root/install/apps/daphne/daphne/src/ldp-out'
make: *** [sub] Error 2


I thought it might be the gcc post 3.0 compiler bug, but when I looked through the Makefile.vars for Linux, the -DGCC_X86_ASM optimization had already been removed. Does anyone know how to fix this so it compiles properly?


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 4:43 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Inside daphne/src/ldp-out/pioneer.h, replace

Code:
bool pioneer::getstring(char *, int, Uint32,bool);


with

Code:
bool getstring(char *, int, Uint32,bool);


Ironically, this has been in the code for over 2 years and no one has mentioned it before :)


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 6:43 pm 
Registered User
Registered  User

Joined: Thu Jul 20, 2006 10:57 pm
Posts: 2
Location: Maryland, US
Thanks Matt..

One more in daphne/src/game/lgp.h;
Code:
void lgp::draw_8x8(int character_number, int xcoord, int ycoord);

to
Code:
void draw_8x8(int character_number, int xcoord, int ycoord);

and the compile completed fine..


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Jul 22, 2006 6:21 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
thanks for the information.. I'll make the change to the CVS


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net