On Sun, Feb 26, 2017 at 5:20 PM, Andrew Lowe <c...@wht.com.au> wrote: > On 27/02/2017 12:46 AM, Ray Donnelly wrote: >> In general, from a working installation of msys2, you can install and >> use pkgfile to tell you which package a given file lives in (pass the >> full msys2-ish location as an argument), then, for each file you find >> missing, you need to add that too. >> >> I think it's brave to use clang to teach with on Windows at this >> point, but I admit to not having tried it recently. GCC, for all its >> size and age, works very well IMHO. >> >> In this case, mingw-w64-x86_64-headers, mingw-w64-x86_64-crt and >> mingw-w64-x86_64-gcc-libs (this is unavoidable as our clang is a >> gcc-clang). You may also need mingw-w64-x86_64-winpthreads, I'm not >> sure, and I expect, mingw-w64-x86_64-binutils too. >> > > Ray, > Thanks for the pointers. I installed the libraries you mentioned, I > had > managed to get the headers happening myself, but then managed to get a > link error. Further investigation, and a sudden memory flash reminded me > that clang still uses the system linker, which, you guessed it, is the > gcc linker. If I remember correctly, clang will default to using lld, > the new llvm linker with the release of V4 in a few days - but I need it > tomorrow. I therefore had to install gcc after all that....
For the linker (and assembler) you only needed mingw-w64-x86_64-binutils which I mentioned actually (though I didn't go into the reason). > > With respect to using clang, the reason I use it is that it's stable, > but more importantly the error reporting is vastly superior to gcc which > helps with teaching. It tells the students where the actual error is, > not like gcc which wildly flails around and then points to something 8 > lines away, confusing the bejezzus out of the students. I must also say > that contrary to what you've said and Oscar, who's email came in as I'm > writing this, clang, to me is very stable. I usually run Gentoo Linux > machines and there are very few packages that I can't build with clang. > > Anyway, lets save the compiler battles for another day, it's 1:30 > Monday morning and I can finally build my environment - yeah!!! > > Thanks for the help everyone, > Great! Do let us know how clang works out for you and your students. > Andrew > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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