[cfe-dev] Difference between clang and clang++

John McCall rjmccall at apple.com
Mon May 30 02:15:22 PDT 2011


On May 30, 2011, at 2:07 AM, Nikola Smiljanic wrote:
> Hi all,
> 
> If somebody would explain the difference between clang and clang++. I downloaded 2.9 release and clang.exe and clang++.exe are identical files?

Invoking the compiler as clang++ requests it to compile and link code as C++.  This typically only matters when linking object files, where it causes the C++ standard library to be linked in.

I don't know why (or whether) these files are independent on disk;  on Unix-y platforms, clang++ is just a symlink.

John.



More information about the cfe-dev mailing list