Am 11. Jul 2014, 03:49 schrieb Miguel Carvajal <krvajal.miguelan...@gmail.com>:
> Hi, i'm trying to compile clang but before continue i want to know if > there is a way to turn on c++11 mode by default in the compiler. > I mean, turn the switch on so i don't have to type clang++ -std=c+11 every > time/ Unfortunately, clang doesn't support a spec-file mechanism like gcc yet (at least it didn't when I checked). So the easiest way to achieve this is to use the alias mechanism of your shell: Depending on your shell add a line alias clang++="clang++ -std=c++11" to ~/.bashrc (in case of bash) or ~/.zshrc (if it is zsh) or something else. (And source it via $ source ~/.[...], or open a new terminal) Best, Matthias _______________________________________________ cfe-users mailing list cfe-users@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users