[cfe-users] LLVM : Clang : 3.8.0 (trunk) : Windows 7 64-bit : libc++ missing?
Jeffrey Walton
noloader at gmail.com
Mon Aug 3 00:05:03 PDT 2015
> I have to run Windows 7 Professional 64-bit (due unforeseen circumstances)
> instead of my preferred OS, i.e. FreeBSD.
>
> I just downloaded the Clang toolkit environment installer
> (LLVM-3.8.0-r243265-win64) for Windows (from http://www.llvm.org/builds/)
> and post finishing the install found that clang++.exe refuses to compile
> even a simple C++ program (below);
>
> int main(int argc, char* argv[]) {
> return 0;
> }
>
> The error messages thrown out were (below);
>
> clang++.exe: error: unable to execute command: program not executable
> clang++.exe: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Before this, I tried compiling a more fleshed out program with "includes"
> and "namespaces" and "cout", etc., but then clang++.exe told me about
> absence of "iostream".
>
> Isn't "iostream" a part of "libc++"?
> If yes, is there any pre-built "libc++" installable for Windows?
> If not, is there any documentation which shows how to get it compiled under
> Windows?
>
Yeah, you need to download and build libcxx in addition to LLVM, Clang
(CFE), and Tools.
You can find libcxx at http://libcxx.llvm.org/.
Also, the Autotools/Make based stuff does not work because it does not
detect the presence of libcxx in-tree (or is it out-of-tree?). Use the
Cmake gear instead.
Ditto for LLDB if you choose to build it, too.
Jeff
More information about the cfe-users
mailing list