G++ and Clang++ Aug 6th, 2011 A very simple test to compare g++ and clang++ 1 2 3 $ g++ -Wall -Wstrict-prototypes -ansi -pedantic hello1.cpp -o hello1 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ clang++ does not complaint at all 1 2 $ clang++ -Wall -Wstrict-prototypes -ansi -pedantic hello1.cpp -o hello1