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 

How can I compile Hellopsp with PSPSDK??

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



Joined: 02 Jul 2005
Posts: 6

PostPosted: Sat Jul 02, 2005 12:12 pm    Post subject: How can I compile Hellopsp with PSPSDK?? Reply with quote

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
View user's profile Send private message
etx



Joined: 02 Apr 2005
Posts: 33
Location: Detroit

PostPosted: Sat Jul 02, 2005 12:54 pm    Post subject: Reply with quote

helloworld dosen't depend on any external headers or libs, what's the point?
Back to top
View user's profile Send private message AIM Address
striker



Joined: 07 Jul 2005
Posts: 1

PostPosted: Thu Jul 07, 2005 3:48 pm    Post subject: Reply with quote

Just follow the directions in this link to compile helloworld with the gcc-4.0.0-based toolchain.

http://staff.philau.edu/barberej/psp_dev_guide.htm

--Striker
Back to top
View user's profile Send private message
laichung



Joined: 06 May 2005
Posts: 123

PostPosted: Thu Jul 07, 2005 6:35 pm    Post subject: Re: How can I compile Hellopsp with PSPSDK?? Reply with quote

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
View user's profile Send private message
dingofr



Joined: 06 May 2005
Posts: 3

PostPosted: Sun Jul 10, 2005 9:55 am    Post subject: Re: How can I compile Hellopsp with PSPSDK?? Reply with quote

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
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Sun Jul 10, 2005 11:47 am    Post subject: Reply with quote

striker wrote:
Just follow the directions in this link to compile helloworld with the gcc-4.0.0-based toolchain.

http://staff.philau.edu/barberej/psp_dev_guide.htm


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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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