Im trying to build a really small elf, that relies on the least amount of hardware or calls i guess. here is and example i found but i cant get it to compile.
#include <kernel.h>
#include <sifrpc.h>
int main (void)
{
SifInitRpc (0);
init_scr();
scr_printf ("ps2dev");
SleepThread (();
return 1;
}
what do i name this file?
I guessed and named it main.cpp, but it returns errors at int main (
can you explain these to me?
ee-gcc main.cpp -c -o main.o -Ic:/ps2dev/ps2lib/ee/include/
ee-gcc main.o -Tlinkfile -o ps2.elf -Lc:/ps2dev/ps2lib/ee/lib -lgcc -lkernel -lmc -lpad
im using ps2dev.exe from here:
http://resource.gameres.com/ps2DevEnvironment.exe
smallest ps2 program.
prebuilt PS2SDK installed. thank you
still a little clues on compiling this, but im do some attempts
notepad
#include <kernel.h>
#include <sifrpc.h>
int main (void)
{
SifInitRpc (0);
init_scr();
scr_printf ("PS2 roolz!");
SleepThread (();
return 1;
}
and saved as main.cpp
k, now when i run this command
ee-gcc main.cpp -c -o main.o -Ic:/mysys/1.0/local/ps2dev/ps2dev/ps2lib/ee/include
i get a huge list of errors starting with
kernel.h no such file or directory
still a little clues on compiling this, but im do some attempts
notepad
#include <kernel.h>
#include <sifrpc.h>
int main (void)
{
SifInitRpc (0);
init_scr();
scr_printf ("PS2 roolz!");
SleepThread (();
return 1;
}
and saved as main.cpp
k, now when i run this command
ee-gcc main.cpp -c -o main.o -Ic:/mysys/1.0/local/ps2dev/ps2dev/ps2lib/ee/include
i get a huge list of errors starting with
kernel.h no such file or directory
You misunderstand - I'm the NICE one. You don't want to see the response you get from asking things like "what's the difference between makefiles and batch files?" for some of the people here. I simply told you to go learn some basic skills first. Your parentage, ancestry, and mating habits didn't come into question at all. :)