8.3.1. Including system C header files

To include standard system C header files, such as stdio.h, you need do nothing special. The standard C header files already contain the appropriate extern "C" directives. For example:

// C++ code
#include <stdio.h>
int main()
{
	//...
	return 0;
}

The C++ standard specifies that the functionality of the C header files is available through C++ specific header files. These files are installed in c:ARM250\include, together with the standard C header files, and may be referenced in the usual way. For example:

// C++ code
#include <cstdio>
int main()
{
	// ...
	return 0;
}

In ARM C++, these headers simply #include the C headers.

Note

Both the C and C++ standard header files are available as precompiled headers in the compilers in-memory file system. Refer to Chapter 2 The ARM Compilers in the ARM Software Development Toolkit Reference Guide for more information.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential