This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Getting Started with gcc
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Getting Started with gcc
- From: John Kennedy <johnkennedy at allentek dot com>
- Date: Fri, 21 Sep 2001 16:04:28 -0700
- Organization: Allen Technologies, Inc.
Hello, I have extracted gcc onto my SCO UNIX 5.05 system. I wrote a
"Hello World" program, and compliled it with:
gcc myprog.c
and it says:
collect2: cannot find 'ld'
I though ld would come with the package. Anyway I copied an ld from
another machine then tried it again and this time I got:
elf: fatal error: cannot open file for reading
collect2: ld returned 1 exit status
If I do this:
gcc -c myprog.c
ld myprog.o
It gives my the familiar error that it can't find printf. That I
understand but can anyone show me a painless way to get started?
Thanks,
John Kennedy
650-344-8222 x3015