+ 1

Why the compiler dosen't automatically include all the header files present in it's directory ?

since no two functions have the same name in standard c++ libraries , there is no need of writing multiple header file names.

9th Feb 2017, 3:44 AM
à€§à„à€‚à€†à€§à€Ÿà€° ‱ à€Šà„à€šà€żà€Żà€Ÿà€Šà€Ÿà€° ‱ à€”à„à€Żà€Ÿà€Șà€Ÿà€°
à€§à„à€‚à€†à€§à€Ÿà€° ‱ à€Šà„à€šà€żà€Żà€Ÿà€Šà€Ÿà€° ‱ à€”à„à€Żà€Ÿà€Șà€Ÿà€° - avatar
1 Antwort
+ 7
Certain header files are humongous, and when you say "all" header files, it's a great bigger deal than I can imagine. Compilation time will be endless. Executable size may or may not be different, depending on the compiler and optimization flags used to compile. If unused header files contain #pragma or #define directives, they can altogether, severely affect run-time performance.
9th Feb 2017, 4:34 AM
Hatsy Rei
Hatsy Rei - avatar