building native cross compiler
Ian Lance Taylor
iant@google.com
Mon Mar 14 16:02:00 GMT 2011
Michael Zintakis <michael.zintakis@googlemail.com> writes:
>>> ../../../gcc/libgcc/../libdecnumber/decContext.c:33:43: fatal error: string.h: No such file or directory
>>>
>>
>> The question now is whether you have a C library for your target system.
>>
> Please elaborate Ian - what do you mean?
A C library contains things like <stdio.h>, <string.h>, and the
associated functions like fopen, strcpy, etc. GCC does not provide a C
library.
You've described your target in terms of processor, but not in terms of
operating system. Some operating systems have a C library. Some do
not. Either way, you're going to need one if you want to write C code.
And you're going to cross-compiler your C library in order to
cross-build programs that run on your target system.
Ian
More information about the Gcc-help
mailing list