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.
help with compile errors
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.
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.