compiler issues

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
cmbeke
Posts: 1
Joined: Fri Mar 06, 2009 9:06 am

compiler issues

Post by cmbeke »

i'm new to programming lua on the psp and was wondering if anyone could help with my problem. I know i coded it correctly (helloworld app) because it works on the windows player, and when i try to comple a standalone app it gives me this:

Code: Select all

C:\Users\Owner\Desktop\a>make
psp-g++ -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -O0 -fno-strict-aliasing -mno-
explicit-relocs  -IC:/pspsdk/psp/include/freetype2  -I. -IC:/pspsdk/psp/sdk/incl
ude -G0 -Wall -O0 -fno-strict-aliasing -mno-explicit-relocs  -IC:/pspsdk/psp/inc
lude/freetype2  -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150   -c -o src/soun
d.o src/sound.cpp
src/sound.cpp:10: error: expected initializer before '*' token
src/sound.cpp: In function 'void initMikmod()':
src/sound.cpp:26: error: '_mm_RegisterErrorHandler' was not declared in this sco
pe
src/sound.cpp:35: error: 'musichandle' was not declared in this scope
c:/pspsdk/lib/gcc/../../psp/include/mikmod.h:225: error: too few arguments to fu
nction 'BOOL MikMod_Init(CHAR*)'
src/sound.cpp:36: error: at this point in file
src/sound.cpp: In function 'void unloadMikmod()':
src/sound.cpp:42: error: 'musichandle' was not declared in this scope
src/sound.cpp:42: error: 'MikMod_FreeSong' was not declared in this scope
src/sound.cpp: In function 'void loadAndPlayMusicFile(char*, BOOL)':
src/sound.cpp:51: error: 'musichandle' was not declared in this scope
src/sound.cpp:53: error: 'musichandle' was not declared in this scope
src/sound.cpp:53: error: 'MikMod_LoadSong' was not declared in this scope
src/sound.cpp: In function 'void stopAndUnloadMusic()':
src/sound.cpp:60: error: 'musichandle' was not declared in this scope
src/sound.cpp:60: error: 'MikMod_FreeSong' was not declared in this scope
src/sound.cpp: In function 'void musicPause()':
src/sound.cpp:67: error: 'MP_HandleTick' was not declared in this scope
src/sound.cpp: In function 'void musicResume()':
src/sound.cpp:71: error: 'musichandle' was not declared in this scope
src/sound.cpp: In function 'Sound* loadSound(char*)':
src/sound.cpp:77: error: 'WAV_LoadFN' was not declared in this scope
src/sound.cpp: In function 'void unloadSound(Sound*)':
src/sound.cpp:81: error: 'WAV_Free' was not declared in this scope
src/sound.cpp: In function 'Voice playSound(Sound*)':
src/sound.cpp:87: error: 'MikMod_PlaySample' was not declared in this scope
make: *** [src/sound.o] Error 1
Is this a compiler error or coding error on my part?(no sounds used in app, tutorial i used at http://www.evilmana.com/tutorials/lua_tutorial_list.php only up to button imput)
slasher2661996
Posts: 91
Joined: Sun Feb 22, 2009 8:32 am
Location: Melbourne Australia ZOMG

Post by slasher2661996 »

You don't compile Lua apps.
Drop the index.lua or system.lua in the same folder as the EBOOT.
.:-Slasher-:.
Post Reply