Linking error

Gyana <[email protected]> Wed, 9 Oct 2002 12:21:22 +0530
Newsgroups gmane.comp.gnu.sh-utils.bugs
Organization Indo-Fuji
Message-ID <[email protected]>
>  Hi,
>
>     I have one "Hello World " object file. I want to get the executable
> without using gcc directly. Instead I want to link the object file to the
> library  by using ld in command line.
>
>     As per man page of ld to link an object file with C library we can use
>  ld -o I<output> /lib/crt0.o hello.o -lc but it is giving error
>  ld: cannot open /lib/crt0: No such file or directory as the file <crt0>
> does not exist in specified directory.
>
>  So which file should we use instead of </lib/crt0> to link our "Hello
> World" object file ??
>
>  I am using Linux 7.3 version.
>
>  Thanks
>
>  Mishra