C++: TDM-GCC: minimising includes

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: C++: TDM-GCC: minimising includes

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

Post by nnnik » 14 Dec 2018, 17:22

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

C++: TDM-GCC: minimising includes

Post by jeeswg » 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)
with:
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"

Top