Well, first C program on a Mac, anyway.
My program starts with a line #include <stdio.h>. The rest is a standard program that works on the HP-UX systems at work. I try to compile with the command:
./gcc-4.0 myprog -o myprog.c
and get the error message:
/usr/bin/ld: myprog bad magic number (not a Mach-0 file)
collect2: ld returned 1 exit status
The message suggests a fault with the file type. Any ideas how to fix this? Help would be greatly appreciated.
Mark
My program starts with a line #include <stdio.h>. The rest is a standard program that works on the HP-UX systems at work. I try to compile with the command:
./gcc-4.0 myprog -o myprog.c
and get the error message:
/usr/bin/ld: myprog bad magic number (not a Mach-0 file)
collect2: ld returned 1 exit status
The message suggests a fault with the file type. Any ideas how to fix this? Help would be greatly appreciated.
Mark