[cfe-dev] Any tutorial or resource on getting a working CLang environment under Windows?

greatwolf clang.greatwolf at mamber.net
Fri Dec 21 20:28:03 PST 2012


In particular, I'm not looking to build llvm or clang from source but rather
how to use the precompiled binary made available from llvm's download
section under mingw windows setup.

At the moment I downloaded the latest provided 3.2 Clang Mingw experimental
binary. However, when trying to compile a test program with clang++ it isn't
looking in the right place for the mingw header includes, libstdc++,
win32api and the like.

I would get silly errors like:

main.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.

What's the recommended way to correct this problem? Adding '-I' for mingw's
header location might be one way but there has to be a better way to tell
clang on where to look for this by default.

Secondly, what linker does Clang use? Does it try to use the default gnu ld
linker from mingw? Does Clang come with its own linker? What is llvm-link
for?

Thanks in advance for clarifying.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Any-tutorial-or-resource-on-getting-a-working-CLang-environment-under-Windows-tp4029143.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list