This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Getting Started with gcc


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]