bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking error


From: Bob Proulx
Subject: Re: Linking error
Date: Wed, 9 Oct 2002 10:12:21 -0600
User-agent: Mutt/1.4i

Gyana <address@hidden> [2002-10-09 12:21:22 +0530]:
> >     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.

I see that you posted this to other gnu groups too so I will let them
hash this out.  GNU shellutils is probably not the group you want to
post this to.  Nothing to do here with ld.  But if you have a problem
with /bin/echo et al then we are happy to hear from you.  :-)

Bob


> >     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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]