KINGx - Das inoffizielle PlayStation Forum & News Portal

Normale Version: Compiler will nicht
Sie sehen gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Ich habe PSPtoolchain installiert und die dazugehörigen Pakete. Habs nun soweit hinbekommen in Eclipse (C/C++). Nur leider bekomme ich immer diesen Fehler beim kompilieren:

Code:
make all
/usr/local/pspdev/bin/psp-gcc -I. -I"/usr/local/pspdev/psp/sdk"/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150  -L. -L"/usr/local/pspdev/psp/sdk"/lib     -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o firsthb.elf
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/lib/crt0.o: In function `_main':
/home/lennard/psptoolchain/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld gab 1 als Ende-Status zurück
make: *** [firsthb.elf] Fehler 1


Wo ist der Fehler? Wenn ihr mehr Infos braucht sagt bescheid.

Edit:

Ich habe bei PSPfreak was dazu gefunden: http://forum.pspfreak.de/psp-programmierung/85816-undefined-reference.html

Aber jetzt kommt wieder nen anderer Fehler.

Code:
**** Build of configuration Default for project firsthomebrew ****

make all
/usr/local/pspdev/bin/psp-gcc -I. -I"/usr/local/pspdev/psp/sdk"/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150  -L. -L"/usr/local/pspdev/psp/sdk"/lib   main.o  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o firsthb.elf
main.o: In function `main':
main.c:(.text+0x2c): undefined reference to `me_run'
main.c:(.text+0x34): undefined reference to `me_run'
main.c:(.text+0x30): undefined reference to `me_end'
main.c:(.text+0x3c): undefined reference to `me_end'
collect2: ld gab 1 als Ende-Status zurück
make: *** [firsthb.elf] Fehler 1


Makefile:

Code:
TARGET = firsthb
OBJS = *.o

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


EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = firsthb

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





Edit: Da war ein schreibfehler in meinen code. Hat sich geklärt.

Referenz-URLs