I've followed everything in here:
http://www.jetcube.eu/archives/2008/02/entry_72.html
But the problem I run is the fact that when I compile eclipse gives me this error:
Code: Select all
**** Build of configuration Default for project pspHelloWorld ****
make all
psp-gcc -I. -IC:/Programs/pspsdk/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -L. -LC:/Programs/pspsdk/psp/sdk/lib main.o -lstdc++ -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o main.elf
c:/programs/pspsdk/bin/../lib/gcc/psp/4.3.3/../../../../psp/lib/crt0.o: In function `_main':
../../../../pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [main.elf] Error 1
If it helps at all, here is my makefile:
Code: Select all
TARGET = main
OBJS = main.o
LIBS = -lstdc++
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = -fno-exceptions -fno-rtti
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = $(TARGET)
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
%.o: %.cxx
$(CXX) $(CXXFLAGS) -c -o $@ $<
Code: Select all
#include <pspkernel.h>
#include <pspdebug.h>
/* Define the module info section */
PSP_MODULE_INFO("helloworld", 0, 1, 1);
/* Define the main thread's attribute value (optional) */
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
int main(int argc, char *argv[])
{
pspDebugScreenInit();
pspDebugScreenPrintf("Hello World\n");
return 0;
}
So if anyone knows where to look or what to do next, do shed some light into my problems.
Thanks guys.
- SkyWhy