| View previous topic :: View next topic |
| Author |
Message |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Thu May 07, 2009 12:44 pm Post subject: undefined reference to `sctrlKernelLoadExecVSHWithApitype |
|
|
i get an error that i cant figure out i have all the include i'll also post libs that are in makefile note that not all libs are used but may / will be soon can anyone help me with this
| Code: | main.o: In function `evalSelected()':
main.cpp:(.text+0x23d4): undefined reference to `sctrlKernelLoadExecVSHWithApitype(int, char const*, SceKernelLoadExecVSHParam*)'
collect2: ld returned 1 exit status
make: *** [make.elf] Error 1 |
| Code: | STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg
YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
-lanytype -lunzip |
|
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Thu May 07, 2009 2:59 pm Post subject: |
|
|
| -lpspkernel maybe? |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu May 07, 2009 4:05 pm Post subject: |
|
|
#include <systemctrl.h> ?
-lpspsystemctrl_kernel ? |
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Fri May 08, 2009 12:00 am Post subject: |
|
|
nope an here is full makefile its not that include isnt there its just that at the end it doesnt find i'll also post full output this is for another project so source cant be released is there another way to launch an eboot besides this method that will work without m33 libs
makefile
| Code: | PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
MAKE = $(shell make)
TARGET = make
OBJS = main.o \
events/sys_redraw.o \
events/callbacks.o \
Drawing/ScrollingMenu.o
INCDIR =
LIBDIR =
CFLAGS = -G4 -Wall -O2 -G0
CXXFLAGS = $(CFLAGS) -fexceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
INCS = -I/usr/local/pspdev/include \
-I/usr/local/pspdev/psp/include \
-I/usr/local/pspdev/psp/sdk/include
CFLAGS := $(INCS)
STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg
YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
-lanytype -lunzip
LIBS = $(YOURLIBS) $(STDLIBS)
PSP_FW_VERSION = 500
BUILD_PRX = 1
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = pspgrub
PSP_EBOOT_ICON = NULL
#PSP_LOC = /media/KURT\'S\ PSP/PSP/GAME/$(PSP_EBOOT_TITLE)
#PSP_LOC = F:/PSP/GAME/$(PSP_EBOOT_TITLE)
include $(PSPSDK)/lib/build.mak
ifndef PSP_LOC
PSP_LOC = release
endif
install:
mkdir -p $(PSP_LOC)
cp -f EBOOT.PBP $(PSP_LOC)
cp -f menu.cfg $(PSP_LOC)
|
output
| Code: |
**** Build of configuration Default for project bootloader ****
make clean all
rm -f make.prx make.elf main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o PARAM.SFO EBOOT.PBP EBOOT.PBP
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -fexceptions -fno-rtti -D_PSP_FW_VERSION=500 -c -o main.o main.cpp
main.cpp: In function ‘void evalSelected()’:
main.cpp:168: warning: deprecated conversion from string constant to ‘char*’
main.cpp:169: warning: deprecated conversion from string constant to ‘char*’
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -fexceptions -fno-rtti -D_PSP_FW_VERSION=500 -c -o events/sys_redraw.o events/sys_redraw.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -fexceptions -fno-rtti -D_PSP_FW_VERSION=500 -c -o events/callbacks.o events/callbacks.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -fexceptions -fno-rtti -D_PSP_FW_VERSION=500 -c -o Drawing/ScrollingMenu.o Drawing/ScrollingMenu.cpp
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include -D_PSP_FW_VERSION=500 -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lobjectdraw -losl -lconfig -lconfig++ -lanytype -lunzip -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspaudio -lpsphprm -lpspgu -lpspgum -lpspmpeg -lpsprtc -lpspsdk -lmikmod -lpspaudiocodec -lpspatrac3 -lpng -lAac -lFLAC -lvorbisidec -lmad -lpspusb -lpspusbstor -lpspkernel -lpspsystemctrl_kernel -lpspkubridge -lpspsystemctrl_user -lc -lm -lz -lstdc++ -ljpeg -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o make.elf
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/lib/libc.a(lib_a-strtoul.o): In function `strtoul':
../../../../../newlib/libc/stdlib/strtoul.c:202: multiple definition of `strtoul'
/usr/local/pspdev/psp/sdk/lib/libpspkernel.a(SysclibForKernel_0013.o):SysclibForKernel.S:(.sceStub.text+0x0): first defined here
main.o: In function `evalSelected()':
main.cpp:(.text+0x23d4): undefined reference to `sctrlKernelLoadExecVSHWithApitype(int, char const*, SceKernelLoadExecVSHParam*)'
collect2: ld returned 1 exit status
make: *** [make.elf] Error 1
|
|
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Fri May 08, 2009 3:27 am Post subject: |
|
|
| The fact that it has type info means it is not externed propery as a C export and so it can't find the mangled name in the libraries |
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Fri May 08, 2009 5:44 am Post subject: |
|
|
| so with that said how do i fix it because doing this through a prx worked but makes the app a little bloated wanted to have in one eboot |
|
| Back to top |
|
 |
|