This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Compile Without Libc


"aetherane \(sent by Nabble.com\)" <lists@nabble.com> writes:

> I am cross compiling an application to an architecture where the libc functions won't really be useful to me. Whenever I try to compile my application, I get the following message
> "ld: cannot find -lc"
> After searching the internet, I came to the conclusion that it is looking for libc. Are there any flags that I can use so it doesn't require libc?
> Or should I just build libc so it will link?

This question would be more appropriate on gcc-help.

See the -nodefaultlibs option.  See also the note about -lgcc in the
-nostdlib option.

Ian


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