Page 1 of 1
A couple questions
Posted: Sun Jul 25, 2004 5:13 pm
by XAN
I downloaded Lukasz's files the PS2dev for windows and set it all up and In Cygwin I can open directories and files. Now say I code a C/C++ program in notepad. How do I make that notepad file into an ELF? and when i do make it an elf could I run it off of Pukklink v1b and Inlink? Its conencted only by my ethernet cable. ALso, The tutorials im learning are teachign me C programming. Is C a programmign language I can use on PS2 and Comp without putting anything special in it? If so, Can anyone tell me where I can get a free compiler to make the C on the notepad to become a executable file on windows so I can test it?
Posted: Sun Jul 25, 2004 8:34 pm
by blackdroid
To compile your code into a ps2 elf use ee-gcc, the simplest form is ee-gcc file.c -c file.elf, this is without and library dependencies etc, for more info on gcc and make check out the sticky post in Question and Answers.
If you have cygwin installed and installed the dev package you can compile code for win32 by using gcc ( yes without the ee prefix ), if you dont have it I suggest installing the dev package.
And yes pukklink or ps2link is what most ppl use to run their code.
I suggest checking out the ps2sdk examples, compiling the hello example ( by using make in the samples/hello dir, by doing that you will see more of whats necessary to compile something of use.