| View previous topic :: View next topic |
| Author |
Message |
ironbird
Joined: 02 Jul 2005 Posts: 6
|
Posted: Sat Jul 02, 2005 12:12 pm Post subject: How can I compile Hellopsp with PSPSDK?? |
|
|
I tried to compile the well-known hellopsp source.
I changed function psp** -> sce**.
But I just got some error messanges
| Code: |
/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... |
|
| Back to top |
|
 |
etx
Joined: 02 Apr 2005 Posts: 33 Location: Detroit
|
Posted: Sat Jul 02, 2005 12:54 pm Post subject: |
|
|
| helloworld dosen't depend on any external headers or libs, what's the point? |
|
| Back to top |
|
 |
striker
Joined: 07 Jul 2005 Posts: 1
|
|
| Back to top |
|
 |
laichung
Joined: 06 May 2005 Posts: 123
|
Posted: Thu Jul 07, 2005 6:35 pm Post subject: Re: How can I compile Hellopsp with PSPSDK?? |
|
|
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
| Code: |
/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... |
|
|
| Back to top |
|
 |
dingofr
Joined: 06 May 2005 Posts: 3
|
Posted: Sun Jul 10, 2005 9:55 am Post subject: Re: How can I compile Hellopsp with PSPSDK?? |
|
|
HI!
thx, its works great for 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
| Code: |
/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... |
|
|
|
| Back to top |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Sun Jul 10, 2005 11:47 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|