Hi, I'm new in this whole PS2 programming thing. Sorry for my bad English.
I'm trying to compile the simple PS2 elf program in dev c++, but it won't work.
Did you install the PS2 toolchain? If not, look for threads on doing that. Most beginner setup info is in threads already, many times over. If you just ask again, you probably won't get an answer (at least not one worth repeating).
If you haven't build the toolchain, make sure you have the gcc34 and g++34 and not the latest gcc... I've just found here http://forums.ps2dev.org/viewtopic.php?t=6995
that the PS2 toolchain wont compile under gcc4.x .
How to downgrade the gcc ? Well, good question. I'm also going to try it :)
Us linux users are fortunate in that most linux distros keep one version of gcc 3.x in the repo for programs that won't compile with 4.x. While 4.x will be the default gcc, you can easily install the older version from the repo. No idea how cygwin or mingw do it...
Thank you all for help. Yes, I have downloaded the toolchain script, but I guess my gcc is newer version because it won't compile without errors.
So I downloaded the precompiled stuff (just for now).
When I try to compile something under DevC++ it fails, but when doing the same thing from command line, it compiles alright. Maybe the paths are wrong...