hit counter

Timeline

My development logbook

G++ and Clang++

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