[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linking error
From: |
Gyana |
Subject: |
Linking error |
Date: |
Wed, 9 Oct 2002 12:09:04 +0530 |
User-agent: |
KMail/1.4.1 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |