UMD init probleme.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
fantomasfr
Posts: 11
Joined: Fri Jul 08, 2005 9:02 pm

UMD init probleme.

Post by fantomasfr »

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
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

You need to link with -lpspumd.
fantomasfr
Posts: 11
Joined: Fri Jul 08, 2005 9:02 pm

Post by fantomasfr »

can u be more precise ?
i m using command make to create my pbp.
i have tu use directly gcc-psp ?
thx
fantomasfr
Posts: 11
Joined: Fri Jul 08, 2005 9:02 pm

Post by fantomasfr »

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
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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.
fantomasfr
Posts: 11
Joined: Fri Jul 08, 2005 9:02 pm

Post by fantomasfr »

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

Fantomas
Post Reply