I have msys/mingw and downloaded the pspsdk0.95 from project minpspw (instead of using psptoolchain).
So far, I have passed the make portion but when I issue this
Code: Select all
psp-gcc -L/pspdev/psp/sdk/lib -o dosbox dosbox.o ftruncate.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a -lm -lz hardware/serialport/libserial.a p_sprint.o -lpspdebug -lpspgu -lpspctrl -lpspdisplay -lpspge -lpspsdk -lpsprtc -lpspaudio -lstdc++ -lpspirkeyb -lc -lpspnet -lpspnet_inet -lpsppower -lpsputility -lpspuser -lpspkernel -specs=/pspdev/psp/sdk/lib/prxspecs -Wl,-T/pspdev/psp/sdk/lib/linkfile.prx,-q && psp-fixup-imports dosbox && psp-prxgen dosbox dosbox.prx && pack-pbp EBOOT.PBP PARAM.SFO NULL NULL NULL NULL NULL dosbox.prx NULL
Code: Select all
../../../../pspsdk/src/startup/crt0_prx.c:91: undefined reference to `main'
collect2: ld returned 1 exit status
Code: Select all
d:/pspdev/bin/../lib/gcc/psp/4.3.3/../../../../psp/bin/ld.exe: warning: cannot find entry symbol module_start; defaultin
g to 0000000000000000
cpu/libcpu.a(paging.o): In function `global constructors keyed to paging':
paging.cpp:(.text+0x458): undefined reference to `__dso_handle'
paging.cpp:(.text+0x470): undefined reference to `__dso_handle'
dos/libdos.a(dos_memory.o): In function `global constructors keyed to DOS_FreeProcessMemory(unsigned short)':
dos_memory.cpp:(.text+0x48): undefined reference to `__dso_handle'
dos_memory.cpp:(.text+0x54): undefined reference to `__dso_handle'
dos/libdos.a(dos_misc.o): In function `global constructors keyed to DOS_AddMultiplexHandler(bool (*)())':
dos_misc.cpp:(.text+0x68): undefined reference to `__dso_handle'
dos/libdos.a(dos_misc.o):dos_misc.cpp:(.text+0x74): more undefined references to `__dso_handle' follow
collect2: ld returned 1 exit status
Thanks!