For a list of C standard C headers (stdio, stdlib, assert, …), prepend a c and remove the .h.
For example stdio.h becomes cstdio.
For other headers, use
extern "C"
{
#include "other_header.h"
}
More Related Contents:
- Difference between and ?
- Can I write C++ code without headers (repetitive function declarations)?
- Why is '#' symbol used in C language's header ? Why not any other symbol ? [closed]
- What is the difference between #include and #include “filename”?
- Using G++ to compile multiple .cpp and .h files
- C++ #include guards
- What should go into an .h file?
- Splitting templated C++ classes into .hpp/.cpp files–is it possible?
- How to make a .lib file when have a .dll file and a header file
- How can I get and use the header file in my C++ program?
- Tool to track #include dependencies [closed]
- multiple definition in header file
- Change the current working directory in C++
- How to include header files in GCC search path?
- Forward declare a standard container?
- List of standard header files in C and C++
- C++ Header order [closed]
- .c vs .cc vs. .cpp vs .hpp vs .h vs .cxx [duplicate]
- Is #pragma once part of the C++11 standard?
- scope of using declaration within a namespace
- Cyclic dependency between header files
- c++ template and header files [duplicate]
- static variables in an inlined function
- Handling header files dependencies with cmake
- Header file included only once in entire program?
- What’s the differences between .dll , .lib, .h files?
- error: Class has not been declared despite header inclusion, and the code compiling fine elsewhere
- Generate a “pieslice” in C without using the pieslice() of graphics.h
- C++ templates declare in .h, define in .hpp
- C++ Circular Dependency in Header Files