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.

Should I include stddef.h or cstddef for size_t

When I want to use size_t in C++, should I include <stddef.h> or <cstddef>? …

c++ namespaces naming-conventions header-files size-t
How do I build (get/download) time.h library?

I am trying to build a project on Linux via Makefile. I keep getting cannot find <sys/time.h&…

linux build header-files time.h
How to fix "fatal error: opencv2/core.hpp: No such file or directory" for opencv4 installed in manjaro

Essentially, I've been able to install openCV fine for python but I also want to be able to do it …

c++ header-files include-path manjaro opencv4
Why do I see THROW in a C library?

When I do: less /usr/include/stdio.h (which is only a C library - nothing to do with C++) …

c++ c exception header-files
Installation of Visual Studio 2010 (any edition) installs only 2 files in the C++ headers directory

I installed Visual Studio 2010 Premium on my Windows 7 workstation. After loading a test C++ project, I noticed that it could …

visual-studio-2010 visual-c++ installation windows-installer header-files
What is the difference between - 1) Preprocessor,linker, 2)Header file,library? Is my understanding correct?

Okay, until this morning I was thoroughly confused between these terms. I guess I have got the difference, hopefully. Firstly, …

c compiler-construction linker preprocessor header-files
open() system call header file requirements

I am using x86_64 GNU/Linux with gcc. SYNOPSIS section of man -s2 open says: #include <sys/types.h&…

c header-files system-calls manpage
Should C++ eliminate header files?

Many languages, such as Java, C#, do not separate declaration from implementation. C# has a concept of partial class, but …

c++ header-files
Header file included only once in entire program?

I know this is a common question but I still can't fully get my head around it. In a C …

c++ c c-preprocessor header-files
Where to document functions in C or C++?

I have a C program with multiple files, so I have, for example, stuff.c which implements a few functions, …

c documentation comments header-files