I've noticed a lot of people haven't even heard of clang. It has by far the best C++11 support and it's error messages like the above which make it totally worth it. It also has a version that works with MinGW on Windows.
I do want to ask, which compilers do you primarily use?
clang++ for C++11, and MSVC for other Windows stuff (I write plugins and have to use an SDK) and I use online compilers to test he portability of my code (e.g. ideone and liveworkspace)
@Script Coder @Catish It's actually really easy:
1. Install MinGW
2. On the clang downloads page, every version has one that says "Experimental Clang Binaries for Mingw32/x86" (which is their way of saying "OK fine yes we support Windows")
3. Put it in e.g. C:/clang/
4. Add C:/clang/bin/ to your PATH environment variable (make sure MinGW's is there too)
Done! Invoke clang++ --help from the commandline and then try compiling.
Ah, the times have changed. It was definitely ahead a few months ago having support for several features GCC didn't. That table is also a little dated considering the above link claiming that clang++ is fully C++11 compliant, but you're right that they are neck-and-neck.
@Catfish I have installed and used clang++ 3.2 on XP, Vista, and 7 multiple times and have not encountered that. I just recently helped someone else with that issue and it was because they did not have C:\MinGW\bin in their PATH environment variable.
I am sticking with nuwen's 4.8.0 MinGW distro. Thanks anyway.
Is this supposed to be rude? don't understand why you would say this otherwise. I'm not asking or requiring you to use clang, I just wanted to explain that installing clang on Windows is simpler than you made it out to be.
You are over-analyzing things again; no it's not "supposed to be rude". I appreciated your post explaining the installation, I tried what you wrote, it didn't work, so I deleted clang. That's all.
Topic archived. No new replies allowed.
You are using a version without Ads of this website. Please, consider donating: