On Nov 20, 2009, at 11:18 AM, John Thompson wrote: How to force clang to compile a file as C++? > > clang -Xclang "-x=c++" -fsyntax-only file.c What about: clang++ file.c ?