| View previous topic :: View next topic |
| Author |
Message |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Fri Jul 08, 2005 9:06 pm Post subject: UMD init probleme. |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Fri Jul 08, 2005 9:11 pm Post subject: |
|
|
| You need to link with -lpspumd. |
|
| Back to top |
|
 |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Fri Jul 08, 2005 9:20 pm Post subject: |
|
|
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 |
|
 |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Fri Jul 08, 2005 9:47 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Jul 09, 2005 1:56 am Post subject: |
|
|
| 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 |
|
 |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Sat Jul 09, 2005 2:34 am Post subject: |
|
|
i will read it :)
tonight ;)
thanks for all mrbrown
++
Fantomas |
|
| Back to top |
|
 |
|