This is the mail archive of the gcc-help@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]

ld PATH


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

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