a.out: cannot execute binary file
I've tried to compile gcc4 on an old g4 (Mac OS X 10.3) to be able to build universal binaries.
(I followed the instructions on http://biolpc22.york.ac.uk/pub/linux-mac-cross/)
I can compile stuff for ppc, but when I compile with "-arch i686" and run the app, after moving the binaries to my intel mac, it returns "./a.out: cannot execute binary file".
Something strange (IMO): when i compile every .c file with "gcc4 -c xx.c", move them to my intel mac and link them there, it runs without problems.
What can cause this problem?
Bye