Top "Header-files" questions

Header files are used in some programming languages to hold source code as a single copy that may be reused in multiple source files.

How can I find the header files of the C programming language in Linux?

When I write C programs in Linux, and then compile them using gcc, I am always curious about where those …

c linux gcc header-files
Initializing Constant Static Array In Header File

I have just found out that the following is not valid. //Header File class test { const static char array[] = { '1…

c++ arrays initialization header-files
List of standard header files in C and C++

Where could I find the list of all header files in C and C++? While I am building a library, …

c++ c header-files
Header guards in C++ and C

At LearnCpp.com | 1.10 — A first look at the preprocessor. Under Header guards, there are those code snippets: add.h: #include "…

c++ c macros header-files include-guards
correct way to include .cpp and .h files in an Arduino sketch

First, the problem: main sketch file: char foo; // required to clean up some other problems #include <Arduino.h> // …

c++ include arduino header-files arduino-ide
Defining constructor in header file vs. implementation (.cpp) file

I can define the body of a class constructor in the class .h file or in the implementation file .cpp. …

c++ constructor header-files
C header issue: #include and "undefined reference"

Alright, I've been trying to work with this for the longest time, and I simply can't seem to get it …

c gcc header header-files undefined-reference
C++ namespace and include

Why do we need both using namespace and include directives in C++ programs? For example, #include <iostream> using …

c++ namespaces header-files
Header files for x86 SIMD intrinsics

Which header files provide the intrinsics for the different x86 SIMD instruction set extensions (MMX, SSE, AVX, ...)? It seems impossible …

x86 header-files sse simd intrinsics
Where are the headers of the C++ standard library

I wonder where on my file system I find the headers of the C++ Standard library. In particular I am …

c++ linux stl header-files c++-standard-library