| View previous topic :: View next topic |
| Author |
Message |
Xephonic
Joined: 03 Aug 2005 Posts: 6
|
Posted: Tue Nov 15, 2005 9:15 am Post subject: libmikmod |
|
|
#include <pspkernel.h>
#include <pspiofilemgr_fcntl.h>
#include <string.h>
#include <pspaudio.h>
#include <pspaudiolib.h>
#include "mikmod.h"
#define BACKGROUND_MUSIC_FILE "ms0:/PSP/GAME/PSPCHESS/BACKGROUND.MOD"
#define MUSIC_DIR "ms0:/PSP/MUSIC"
#define MAX_ENTRY 512
UNIMOD *g_mf;
int g_music_on = 1;
#define O_RDONLY 0x0001
syntax error before '*' token on unimod line
why does it do this? |
|
| Back to top |
|
 |
sweetlilmre
Joined: 01 Oct 2005 Posts: 27
|
Posted: Tue Nov 15, 2005 2:38 pm Post subject: |
|
|
If you are using the new libmikmod import, then UNIMOD is no longer applicable. It is now MODULE.
I have made some updates to the lib, so get the latest version and look at the example.c.
-(e) |
|
| Back to top |
|
 |
Xephonic
Joined: 03 Aug 2005 Posts: 6
|
Posted: Tue Nov 15, 2005 4:30 pm Post subject: |
|
|
| sweetlilmre wrote: | If you are using the new libmikmod import, then UNIMOD is no longer applicable. It is now MODULE.
I have made some updates to the lib, so get the latest version and look at the example.c.
-(e) |
When i try to compile example.c
i get these errors now:
relocation truncated to fit: R_MIPS_GREPL16 against "md_mode"
relocation truncated to fit: R_MIPS_GREPL16 against "md_reverb"
relocation truncated to fit: R_MIPS_GREPL16 against "md_pansep" |
|
| Back to top |
|
 |
sweetlilmre
Joined: 01 Oct 2005 Posts: 27
|
Posted: Wed Nov 16, 2005 2:53 am Post subject: |
|
|
Weird,
If you have done: svn co svn://svn.ps2dev.org/psp/trunk/libmikmod
Then "make -f Makefile.psp clean install"
You should see a -G0 as a compile option. This should prevent the relocation errors. Perhaps you should try compiling your code with -G0?
I'm fairly new to the gcc world so I could be talking crap here.
Make sure you removed any previous mikmod lib files (libmikmod.a and mmio.a) as well as the header from the PSP lib and include dirs.
-(e) |
|
| Back to top |
|
 |
|