Since I got multiple classes and utility-functions I reuse on a regular basis, I started to create a static library for those parts.
Until now, most of those header files with class and function declarations #include the same "global" header file which itself #includes other header files (like etc.).
As for me, It feels annoying to force a user to include more than one header file when only "actively" using the one which got the classes.
So I vanquished the global header file and included all the necessary headers into my own headers.
This worked in some way, but I encountered some problems regarding Winsock:
You need to #define WIN32_LEAN_AND_MEAN and ensure that the user won´t #include before those headers of mine, or multiple redefinitions will occur :/.
That´s why I wanted to ask You how You would do this? Or what approches You can think of?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)