2.4. Paths to the GNU headers

You should use the glibc header files in order to access Linux-specific functions. You will therefore need to include the paths to these files using the -J compiler switch. If CSL_ROOT is the top-level directory of your CodeSourcery installation and GCC_VERSION is the version number of GCC being used, the following paths should be used:


You may also wish to include these two additional paths:

$(CSL_ROOT)/arm-none-linux-gnueabi/libc/usr/include/linux - for open-source applications that directly include kernel header files and do not specify the "linux/" directory prefix in their sources

$(CSL_ROOT)/include/c++/$(GCC_VNUM)/backward - for legacy applications requiring older C++ header files for backwards compatibility

At the time of writing, the GCC version included with CodeSourcery's toolchain (in the 2006-q1-6 release) is GCC 4.1.0.

Copyright © 2005-2006. All rights reserved.DAI0150B