However I am having trouble compiling my code, this looks like:
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspkerneltypes.h>
#include <psppower.h>
#include <SDL/SDL.h>
PSP_MODULE_INFO("Hello world", 0, 1, 1);
int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Quit();
return 0;
}
I know that some methods are missing - those callbacks. However I saw someone using allegro on the internet that didn't use it so I thought it would work.
And this is my make file (which I found on a forum)
TARGET = hello OBJS = main.o PSPSDK = $(shell psp-config --pspsdk-path) PSPDEV = $(shell psp-config -d) PSPBIN = $(PSPDEV)/bin SDL_CONFIG = $(PSPBIN)/sdl-config CFLAGS = -O2 -G0 -Wall -D PSP CFLAGS += $(shell $(SDL_CONFIG) --cflags) CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBS = -lstdc++ -lSDL_ttf -lfreetype -lSDL_image -ljpeg -lpng -lz -lm -lSDL_mixer -lvorbisidec -lmikmod -lmad LIBS += -lpspaudiolib -lpspaudio -lpsppower EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Hello World PSPSDK=C:\pspsdk\psp\sdk include $(PSPSDK)/lib/build.mak
I compiled the code with the command:
vsmake >> a.txt
to see the output in a text file.
This is the result:
http://pastebin.com/3xP6iDFG
A lot of undefined references...
Anyone knows what I have to do to make it compile? (and run)






