This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ld PATH
- To: <gcc-help at gcc dot gnu dot org>
- Subject: ld PATH
- From: "Yu Xuanwei" <yxwbox at email dot com dot cn>
- Date: Thu, 16 Aug 2001 14:12:54 +0800
Hi, folks:
I'm cross-compiling some source by GCC compiler. There is a problem:
The linker 'ld' complains that it can't open libc.a and so on.
I found that all libraries in /my_top/glibc/lib can't be linked into my final binary. So I wonder how to direct 'ld' to search /my_top/glibc/lib directory for linking library files. I've try "gcc -L/my_top/glibc/lib hello.c" and "gcc -Wl,-L/my_top/glibc/lib hello.c". But it's invalid.
Any ideas?
Thanks in advance,
YuXuanwei