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 

UMD init probleme.

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



Joined: 08 Jul 2005
Posts: 11

PostPosted: Fri Jul 08, 2005 9:06 pm    Post subject: UMD init probleme. Reply with quote

HI,
i m trying to initialise UMD drive, using command explian in pspsdk

x = sceUmdCheckMedium(0);
if (!(x)) sceUmdWaitDriveStat(UMD_WAITFORDISC);

sceUmdActivate(1,"disc0:");
sceUmdWaitDriveStat(UMD_WAITFORINIT);

i use cygwin lastest toolchain & pspsdk 1.0.
i have include pspumd.h in my main.c
but there is a pspgcc error when i compiling


undefined reference to sceUmdCheckMedium
undefined reference to sceUmdWaitDriveStat
undefined reference to sceUmdActivate
undefined reference to sceUmdWaitDriveStat



There is an issue ?
thanks by advance
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Jul 08, 2005 9:11 pm    Post subject: Reply with quote

You need to link with -lpspumd.
Back to top
View user's profile Send private message
fantomasfr



Joined: 08 Jul 2005
Posts: 11

PostPosted: Fri Jul 08, 2005 9:20 pm    Post subject: Reply with quote

can u be more precise ?
i m using command make to create my pbp.
i have tu use directly gcc-psp ?
thx
Back to top
View user's profile Send private message
fantomasfr



Joined: 08 Jul 2005
Posts: 11

PostPosted: Fri Jul 08, 2005 9:47 pm    Post subject: Reply with quote

hi again :p sorry
i have linked with -lpspumd and gcc retunr me
"linker input file unused because linking not done" :'(

thx by advance for your answer
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Jul 09, 2005 1:56 am    Post subject: Reply with quote

Use build.mak as a starting point or start reading up on GCC. You should read GCC's manuals anyway, so you know what's going on. build.mak is used by all PSPSDK sample code.
Back to top
View user's profile Send private message
fantomasfr



Joined: 08 Jul 2005
Posts: 11

PostPosted: Sat Jul 09, 2005 2:34 am    Post subject: Reply with quote

i will read it :)
tonight ;)
thanks for all mrbrown
++

Fantomas
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