Andrew Lowe <c...@wht.com.au> writes:

[snip]

>       Well I did and my headers are missing, which means the std lib as well. 
> I must have brain faded and not installed something. I've got clang 
> installed and I haven't installed gcc. Is there an easy way of getting 
> the standard headers and libs for clang to use without having to install 
> gcc as well? I've tried all sorts of searches with pacman but I just get 
> screenfuls of packages and it's impossible to wade throught.
>
>       Thoughts would be greatly appreciated,

Are you using libc++? (the Standard C++ Library developed by the Clang
crowd) If not, clang will use the SC++L provided by GCC.

I second Ray's opinion: there is hardly a reason for using Clang instead
of GCC on Windows. Actually, I'm trying Clang with each release for my
Windows projects (all cross-platform, which works fine with MinGW-w64 on
Windows and GCC and Clang on Linux) and, although it improves a bit
every time, it is far from being usable.

Put GCC in your memory stick and you will have a more stable Clang
environment *and* an alternate, production-ready, C++ compiler. (When I
was learning C++, passing the same code to different compilers was often
interesting, even on this days I use two compilers for catching
portability issues or for making sense of complex diagnostics.)

If, after installing the packages mentioned by Ray plus GCC and its
dependencies, the problem persists, post some sample code along with the
command used for compiling it and its output. Pass `-v' to the compiler
for forcing the display of header search path.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to