forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error: crt0_prx.c

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Wallaby



Joined: 18 Jan 2008
Posts: 1

PostPosted: Tue Feb 05, 2008 10:25 pm    Post subject: Error: crt0_prx.c Reply with quote

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, &param);
      }
   }   

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
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Wed Feb 06, 2008 1:49 am    Post subject: Reply with quote

hum ... put an int main(...){ } in place of main_thread?
Back to top
View user's profile Send private message Visit poster's website
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Wed Feb 06, 2008 2:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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