 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Wallaby
Joined: 18 Jan 2008 Posts: 1
|
Posted: Tue Feb 05, 2008 10:25 pm Post subject: Error: crt0_prx.c |
|
|
Hello,
Sorry for my bad English, I'm French!
When I make my Eboot with pspdev, I have this error:
My main.c:
| Code: | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
PSP_MODULE_INFO("recoveryload", 0x1000, 1, 0);
PSP_MAIN_THREAD_ATTR(0);
#define PATH "flash0:/vsh/module/recovery.prx"
//init from flash//
int main_thread(SceSize args, void *argp)
{
SceCtrlData pad;
while(0)
{
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_CROSS)
{
struct SceKernelLoadExecParam param;
sceKernelLoadExec(PATH, ¶m);
}
}
return 0;
}
|
And my Makefile:
| Code: | TARGET = MyNameIsFW3x
OBJS = main.o
INCDIR =
# vvvvvvvv
CFLAGS = -O2 -G0 -Wall -DPSPFW3X
# ^^^^^^^^
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
# vvvvvvvv
BUILD_PRX=1
PSP_FW_VERSION=303
# ^^^^^^^^
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = MyNameIsFW3x
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
What must I do to abolish the error?
Thank you,
Wallaby |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Wed Feb 06, 2008 1:49 am Post subject: |
|
|
| hum ... put an int main(...){ } in place of main_thread? |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Wed Feb 06, 2008 2:24 am Post subject: |
|
|
| Yes, that's the problem.....in addition to this, in order to properly compile, be also sure not to leave spaces after each line end in the makefile....if you write "TARGET = MyNameIsFW3x[SPACE]" in the makefile, psp-strip will fail....i'm saying this because it is what happened to me when i first tryed to compile snippets copied'n'pasted from a web page |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|