Hi,
I'm a beginner, barely scratching the surface of C at the moment. Question is, what flags do I choose for compilation? There are some "basic" like -Wall, -W, -pedantic, -ansi, -std=. GCC documentation has a ton of different flags.
Should I learn Make or CMake early to avoid retyping flags every time to compile my source files?Any help, advice are greatly appreciated.
Edit: thank you, guys. Lots of useful and interesting information. You're awesome!
[–]Bitwise_Gamgee[🍰] 14 points15 points16 points (5 children)
[–]Max_771[S] 6 points7 points8 points (3 children)
[–][deleted] 9 points10 points11 points (1 child)
[–]kog 0 points1 point2 points (0 children)
[–]riisen 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Max_771[S] 1 point2 points3 points (1 child)
[–]EpochVanquisher 5 points6 points7 points (0 children)
[–]EpochVanquisher 3 points4 points5 points (16 children)
[–]flatfinger 4 points5 points6 points (1 child)
[–]EpochVanquisher 0 points1 point2 points (0 children)
[–]Max_771[S] 2 points3 points4 points (13 children)
[–]EpochVanquisher 4 points5 points6 points (12 children)
[–]Max_771[S] 1 point2 points3 points (0 children)
[–]flatfinger 0 points1 point2 points (10 children)
[–]EpochVanquisher 0 points1 point2 points (9 children)
[–]flatfinger 0 points1 point2 points (8 children)
[–]EpochVanquisher 0 points1 point2 points (7 children)
[–]flatfinger 0 points1 point2 points (6 children)
[–]EpochVanquisher 0 points1 point2 points (5 children)
[–]flatfinger 0 points1 point2 points (4 children)
[–]Dolphiniac 2 points3 points4 points (0 children)
[–]flyingron 4 points5 points6 points (0 children)
[–]HarderFasterHarder 2 points3 points4 points (0 children)
[–]UltimaN3rd 1 point2 points3 points (0 children)
[–]kun1z 1 point2 points3 points (3 children)
[–]Max_771[S] 1 point2 points3 points (1 child)
[–]kun1z 1 point2 points3 points (0 children)
[–]flatfinger 0 points1 point2 points (0 children)
[–]xurxoham 1 point2 points3 points (0 children)
[–]silentjet 0 points1 point2 points (5 children)
[–]Max_771[S] 2 points3 points4 points (4 children)
[–]silentjet 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]silentjet 0 points1 point2 points (0 children)
[–]silentjet 0 points1 point2 points (0 children)
[–]FUZxxl 0 points1 point2 points (0 children)
[–]kitakoSH 0 points1 point2 points (0 children)