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.

C++ - must friend functions be defined in the header file?

I want to overload the operator << in one of my classes. The signature goes like this: friend std::…

c++ operator-overloading header-files friend
How to read a CMake Variable in C++ source code

I'd like to store the version number of my library in just one place. So I have defined such a …

c++ makefile cmake header-files
Objective C - Error: 'Expected a type'

I'm getting a very strange error on something that I would have thought to be simple. #import <Foundation/Foundation.…

objective-c import header-files forward-declaration circular-dependency
Python.h header file missing on Mac OS X 10.6

I'm trying to access a shared C library in Python with ctypes on Mac OS X 10.6.8 with Python 2.7.4. To do …

python xcode macos osx-snow-leopard header-files
What mean file with extension "h.in"?

I am studying the C language, and I saw a new extension that I had not seen before. What do …

c header-files
CLion doesn't resolve headers from external library

Some time ago I started a big header library in C++1x using XCode. The current layout of the library …

c++ header-files clion header-only
CUDA source files get a .cu extension. What do header files get?

The standard convention seems to be to give CUDA source-code files a .cu extension, to distinguish them from C files …

cuda header-files file-extension
C++ Declaration of class variables in header or .cpp?

So far, I've been using classes the following way: GameEngine.h declares the class as follows class GameEngine { public: // Declaration …

c++ header-files variable-declaration
What exactly do C include guards do?

I have a question regarding include guards in C. I've done a bit of reading but would appreciate a little …

c macros c-preprocessor header-files include-guards
C/C++ header and implementation files: How do they work?

This is probably a stupid question, but I've searched for quite a while now here and on the web and …

c++ compilation header-files