undefined reference to `sctrlKernelLoadExecVSHMs2'
Okay, I don't get it. I have "-lpspsystemctrl_user" in my libs, and I have "sytemctrl.h" and systemctrl_ce.h" included in my source, but it still gives me the error the topic is named after. I checked the header file for systemctrl.h and the function is there, but it's still throwing the error. Here is my source and Makefile.
Quote:
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <psploadexec_kernel.h>
#include <systemctrl.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <pspsdk.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <psploadexec_kernel.h>
#include <kubridge.h>
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
using namespace std;
PSP_MODULE_INFO("Booter v1.0", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
void RunPBP(char* file){
struct SceKernelLoadExecVSHParam param;
char argp[256];
int args;
strcpy(argp, file);
args = strlen(file)+1;
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = args;
param.argp = argp;
param.key = NULL;
param.vshmain_args_size = 0;
param.vshmain_args = NULL;
sctrlKernelLoadExecVSHMs2(file,¶m);
}
//Main
int main(){
RunPBP("Test.PBP");
return 0;
}
Quote:
TARGET = bootload
OBJS = main.o
INCDIR = ../401M33SDK/include
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c
LIBDIR = ../401M33SDK/lib
LDFLAGS =
LIBS = -lz -lpspsdk -lpspsystemctrl_user -lm
PSP_FW_VERSION = 400
BUILD_PRX = 1
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = BootLoad Sample
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak