C++: TDM-GCC: minimising includes

Talk about things C/C++, some related to AutoHotkey
User avatar
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

C++: TDM-GCC: minimising includes

14 Dec 2018, 16:40

- I was wondering about any issues relating to minimising the number of included files in C++ code, for when compiling machine code.
- I noticed that min is not a built-in function, so I've replaced:
min(a, b)
a < b ? a : b
The same applies to max. I wondered if other people add the include, or change the code, or use macros even, and whether there are other little issues like this. Thanks.
- I believe the include for the max/min functions is #include "windows.h"
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
Posts: 4478
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: C++: TDM-GCC: minimising includes

14 Dec 2018, 17:22

Yes there are many issues. I have summarized a few of the problems in my MCode tutorial.
Recommends AHK Studio

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 2 guests