Answer the question
In order to leave comments, you need to log in
How to make a header file for a static library?
Hello, I have 8 .cpp files and each of them has a .hpp file. I compile a static library and put all .hpp files into 1 .hpp file almost copy-paste:
#ifndef HEADER1__DEF
#define HEADER1__DEF
//Definitions
#endif
#ifndef HEADER2__DEF
#define HEADER2__DEF
//Definitions
#endif
#ifndef HEADER3__DEF
#define HEADER3__DEF
//Definitions
#endif
//......
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question