Code: Select all
gambiting@gambiting-desktop:~/psp/v-pop_psp$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -D_PSP_FW_VERSION=150 -L. -L/usr/local/pspdev/psp/sdk/lib main.o -lpsprtc -lstdc++ -lc -lm -lz -lSDL -lSDLmain -lSDL_ttf -lSDL_gfx -lfreetype -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o V-POP.elf
/usr/local/pspdev/psp/lib/libSDLmain.a(SDL_psp_main.o): In function `cleanup_output':
psp/SDL_psp_main.c:122: multiple definition of `module_info'
main.o:/home/gambiting/psp/v-pop_psp/main.cpp:109: first defined here
/usr/local/pspdev/psp/lib/libSDLmain.a(SDL_psp_main.o): In function `cleanup_output':
psp/SDL_psp_main.c:122: multiple definition of `sce_newlib_attribute'
main.o:/home/gambiting/psp/v-pop_psp/main.cpp:109: first defined here
collect2: ld returned 1 exit status
make: *** [V-POP.elf] Error 1
gambiting@gambiting-desktop:~/psp/v-pop_psp$
Code: Select all
TARGET = V-POP
SOURCES = main.cpp
OBJS = main.o
YOURLIBS=
INCDIR =
CXX = psp-g++
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -g -G4 -Wall -O2 -G0 -Wall -D_DEBUG -DPSPDevkit -DPSP_FW_VERSION=371
ASFLAGS = $(CFLAGS)
SDL_CONFIG = $(PSPBIN)/sdl-config
USE_PSPSDK_LIBC=1
LIBDIR =
LDFLAGS =
STDLIBS= -lpsprtc -lstdc++ -lc -lm -lz -lSDL -lSDLmain -lSDL_ttf -lSDL_gfx -lfreetype
LIBS=$(STDLIBS)$(YOURLIBS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = V-POP
PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
CFLAGS += $(shell $(PSPBIN)/sdl-config --cflags)
LIBS += $(shell $(PSPBIN)/sdl-config --libs)
include $(PSPSDK)/lib/build.mak