forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with compile errors

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
DarkCat



Joined: 25 Mar 2008
Posts: 2

PostPosted: Tue Mar 25, 2008 1:31 pm    Post subject: help with compile errors Reply with quote

i am currently working on updating some things in infogb (the one 7not6 released in 2004). however, i cannot even compile a untouched source.

when i do a make, i get:

C:\ps2dev\SRC\1fogb\InfoGB05J\src\ps2>make
ee-gcc -D_EE -O2 -G0 -Wall -G0 -O2 -I/include -IC:/ps2dev/sbv-1.0-lite/include -
I./gfxpipe -I./ -finline-functions -fstrict-aliasing -funsigned-char -DLSB_FI
RST -fomit-frame-pointer -IC:/ps2dev/ps2sdk/ee/include -IC:/ps2dev/ps2sdk/commo
n/include -I. -c ps2input.c -o ps2input.o
ps2input.c: In function `setup_pad':
ps2input.c(147) : warning: implicit declaration of function `SleepThread'
ps2input.c: In function `ps2_update_input':
ps2input.c(227) : subscripted value is neither array nor pointer
ps2input.c(227) : subscripted value is neither array nor pointer
ps2input.c(307) : subscripted value is neither array nor pointer
ps2input.c(307) : subscripted value is neither array nor pointer
ps2input.c(311) : warning: implicit declaration of function `IngameMenu'
ps2input.c(192) : warning: unused variable `p2_1t'
ps2input.c(192) : warning: unused variable `p2_2t'
ps2input.c(194) : warning: unused variable `pad2_data'
make: *** [ps2input.o] Error 1


if anyone can help, i would appreciate it.
Back to top
View user's profile Send private message
BraveDog



Joined: 30 Dec 2004
Posts: 29
Location: Cleveland

PostPosted: Tue Mar 25, 2008 9:09 pm    Post subject: Reply with quote

This post here should help.

http://forums.ps2dev.org/viewtopic.php?t=798
Back to top
View user's profile Send private message
DarkCat



Joined: 25 Mar 2008
Posts: 2

PostPosted: Wed Mar 26, 2008 3:27 am    Post subject: Reply with quote

that helped with that, thanks!
after a little bit of getting everything together, and i am still trying to compile, now i am getting:
C:\ps2dev\SRC\1fogb\InfoGB05J\src\ps2>make
ee-gcc -mno-crt0 -TC:/ps2dev/ps2sdk/ee/startup/linkfile -LC:/ps2dev/ps2sdk/ee/li
b \
-o InfoGB.elf C:/ps2dev/ps2sdk/ee/startup/crt0.o ../testz/zlib/a
dler32.o ../testz/zlib/compress.o ../testz/zlib/crc32.o ../testz/zlib/gzio.o .
./testz/zlib/uncompr.o ../testz/zlib/infcodes.o ../testz/zlib/trees.o ../testz/
zlib/deflate.o ../testz/zlib/inflate.o ../testz/zlib/infblock.o ../testz/zlib/in
ftrees.o ../testz/zlib/infutil.o ../testz/zlib/inffast.o ../testz/zlib/zutil.o
aio-fio.o ../testz/unzip/explode.o ../testz/unzip/unreduce.o ../testz/unzip/unsh
rink.o ../testz/unzip/unzip.o ./../mem.o ./../cpu.o ./../joypad.o ./../rom.o
./../sound.o ./../vram.o ./sjpcm.o ./libcdvd.o ./hw.o ./gs.o ./sjpcm_rpc.o .
/fontmsx.o ./gfxpipe/gfxpipe.o ./ps2print.o ./ps2input.o ./ps2init.o ./ps2gui.o
./ps2romselect.o ./InfoGB_System_ps2.o C:/ps2dev/sbv-1.0-lite/lib/libsbv_patc
hes.a ../../../../libcdvd/lib/libcdvd2.a -lgcc -lm -lc -lmc -lpad -I. /lib/libc
.a -lc -lkernel
aio-fio.o(.data+0x11): In function `aioOpen':
aio-fio.cpp: undefined reference to `__gxx_personality_v0'
./../mem.o(.data+0xd0f5): In function `memory_write_word(unsigned short, unsigne
d short)':
../mem.cpp: undefined reference to `__gxx_personality_v0'
./../cpu.o(.data+0x2141): In function `gameboy_cpu_execute_opcode()':
../cpu.cpp: undefined reference to `__gxx_personality_v0'
./../rom.o(.data+0x141): In function `load_rom(char*)':
../rom.cpp: undefined reference to `__gxx_personality_v0'
./../sound.o(.data+0x8309): In function `SoundRead(int)':
../sound.cpp: undefined reference to `__gxx_personality_v0'
./../vram.o(.data+0x5b1):../vram.cpp: more undefined references to `__gxx_person
ality_v0' follow
collect2: ld returned 1 exit status
make: *** [InfoGB.elf] Error 1

i personally have never seen this error (gxx personality v0) before in all these years of working with c++.

the only post from this forum that covers a gxx error is:
http://forums.ps2dev.org/viewtopic.php?p=17093#17093

i have tried putting

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

around the headers of the files mentioned, however it dosnt seem to solve the problem at all.
Back to top
View user's profile Send private message
Mega Man



Joined: 18 Jun 2005
Posts: 274

PostPosted: Fri Mar 28, 2008 10:23 am    Post subject: Reply with quote

DarkCat wrote:

i personally have never seen this error (gxx personality v0) before in all these years of working with c++.


OK, but you didn't used it for linking. You are using ee-gcc, you need to replace it by ee-g++.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group