Wow okay, gte ready for a noob question everyone...
Kk I got the toolchain set up and all, renamed all folders and path directories, copied MAKE.exe blahblahblah...I then got to lesson 2..
Wrote all the code loks like this...
Ive read all previous posts and I see no specific errors...(I changed the wording to make it look cooler, i know its corny but please bear with me) and i run the BAT and go to the helloworld folder using CD, then type MAKE and blahblahblah comes up thenCode:// Hello World - My First App for the PSP
/*
This program was created by PSPHAXOR(Nick DeSousa) on 06252005
It is a simple "Hello World" Application.
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 0, 1, 1);
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCall back(cbid);
sceKernelSleepThreadCB();
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid , 0, 0);
}
return thid;
}
int main() {
pspDebugScreenInit();
SetupCallbacks();
printf("Welcome to the world of Hacking Nick, We've been waiting for you.....");
sceKernelSleepThread();
return 0;
}
PLEASE HELP!!! Before i got many stray / errors, but im advanced enough to figure that out. Im not as much pf a newb as i sound, but ive been at this forever.Code:main.c: In function 'CallbackThread':
Main.c:22: error: 'sceKernelRegisterExitCall' undeclared<first use in this function>
main.c:22: error: <each undeclared identifier isreported only once
main.c:22: error: for each function it appears in .>
main.c:22: error: syntax error before 'back'
main.c:46:2: warning: no newline at end of title
make: *** [main.o] Error 1
(i know i have like 3 posts but thats cuz i recently signed up)
