Compile Without Libc
Ian Lance Taylor
ian@airs.com
Sun Sep 25 09:36:00 GMT 2005
"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
More information about the Gcc
mailing list