Getting Started with gcc

John Kennedy johnkennedy@allentek.com
Fri Sep 21 16:01:00 GMT 2001


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




More information about the Gcc-bugs mailing list