/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o:../../../sdk/star
tup/crt0.S:110: undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o: In function `__entrytable':
../../../sdk/startup/crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
collect2: ld returned 1 exit status
What is the problem?? How can I fix it?
Plz Help me...
Change psp to sce is not enough.
you need to include those library in program (for example , <pspkernel.h>)
and need to call "PSP_MODULE_INFO("HELLOPSP", 0, 1, 1);" function to set the module_info <- this is what the error come from.
ironbird wrote:I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o:../../../sdk/star
tup/crt0.S:110: undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o: In function `__entrytable':
../../../sdk/startup/crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
collect2: ld returned 1 exit status
What is the problem?? How can I fix it?
Plz Help me...
laichung wrote:Change psp to sce is not enough.
you need to include those library in program (for example , <pspkernel.h>)
and need to call "PSP_MODULE_INFO("HELLOPSP", 0, 1, 1);" function to set the module_info <- this is what the error come from.
ironbird wrote:I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o:../../../sdk/star
tup/crt0.S:110: undefined reference to `main'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o: In function `__entrytable':
../../../sdk/startup/crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
collect2: ld returned 1 exit status
What is the problem?? How can I fix it?
Plz Help me...
Although these instructions may be quite valid for building hellopsp... it would be far better use of time to install the pspsdk and learn from the samples.