Error: crt0_prx.c

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Wallaby
Posts: 1
Joined: Fri Jan 18, 2008 2:55 am

Error: crt0_prx.c

Post by Wallaby »

Hello,

Sorry for my bad English, I'm French!

When I make my Eboot with pspdev, I have this error:

Image

My main.c:

Code: Select all

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
 
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>


PSP_MODULE_INFO&#40;"recoveryload", 0x1000, 1, 0&#41;;
PSP_MAIN_THREAD_ATTR&#40;0&#41;;

#define PATH "flash0&#58;/vsh/module/recovery.prx"

//init from flash//
int main_thread&#40;SceSize args, void *argp&#41;
&#123;
   SceCtrlData pad;

   
   while&#40;0&#41;
   &#123;
   
      sceCtrlReadBufferPositive&#40;&pad, 1&#41;;

      if&#40;pad.Buttons & PSP_CTRL_CROSS&#41;
      &#123;
      
      struct SceKernelLoadExecParam param;
      sceKernelLoadExec&#40;PATH, &param&#41;;
      &#125;
   &#125;   

return 0;
&#125; 
And my Makefile:

Code: Select all

TARGET = MyNameIsFW3x
OBJS = main.o

INCDIR = 
#                       vvvvvvvv
CFLAGS = -O2 -G0 -Wall -DPSPFW3X
#                       ^^^^^^^^

CXXFLAGS = $&#40;CFLAGS&#41; -fno-exceptions -fno-rtti 
ASFLAGS = $&#40;CFLAGS&#41;

# vvvvvvvv
BUILD_PRX=1
PSP_FW_VERSION=303
# ^^^^^^^^

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = MyNameIsFW3x

PSPSDK=$&#40;shell psp-config --pspsdk-path&#41;
include $&#40;PSPSDK&#41;/lib/build.mak
What must I do to abolish the error?

Thank you,

Wallaby
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

hum ... put an int main(...){ } in place of main_thread?
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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
Post Reply