Well, maybe not the latest, but since I reinstalled cygwin and the toolchain today, mikmodlib compiles and installs fine, but the example won't link (and my game too), an error related to libmmio.a...
The error says:
psp/lib/libc.a(pspcwd.o): In function '__psp_init_cwd':
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
As I was writing this post I solved the problem, declaring this in my program:
void *__psp_argv_0;
Using this, the lib works fine :)
I still post this, as someone might want to fix this error that seems to be in the libc somewhere.
Problems with mikmodlib and latest svn
Re: Problems with mikmodlib and latest svn
This error is because you're using pspsdk from svn but an older version of the newlib patch from somewhere else. Check out a copy of svn://svn.pspdev.org/psp/trunk/psptoolchain and use that to rebuild everything. See here .matkeupon wrote: psp/lib/libc.a(pspcwd.o): In function '__psp_init_cwd':
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
Get the latest psptoolchain directory from svn and run "./toolchain.sh -n" shortly before going to bed. Next thing you know, it's morning and it's done. :)jockyw2001 wrote:What are the least time consuming steps for rebuilding everything? Do I need to run the script which I downloaded last week with '-p' ?