Coding in C++

Hello World For PSP : Tutorial [Coding in C++]

Main.c
//Hello World Program.
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspcallbacks.h>

PSP_MODULE_INFO("Hello World",0,1,1);

char var3[15] = " Hello World ";

int main() {
     pspDebugScreenInit();
     pspDebugScreenClear();
     SetupCallbacks();
    pspDebugScreenPrintf("%s\n", var3);
     sceKernelSleepThread();
     return 0;
}  


Makefile
#one-line comment
TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

#EXTRA_TARGETS is the output file
#PSP_EBOOT_TITLE is the EBOOT's name
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

Compile those code with cygwin or PSPsdk . Cygwin & PSPSDK is a software where it can build c++ project. What you need to do just build it with this command :
make
pause  
 Save it as Build.bat and then run it . The file should be compile to EBOOT.PBP. Create a new folder and rename it as hello world sdk. Copy and paste EBOOT.PBP file to a new folder that you just create. Run it on your PSP and boom! Hello World !