0

I've downloaded http://www.ishani.org/clang/clang3.3_march2013.7z from http://www.ishani.org/web/articles/code/clang-win32/

now,

#include <iostream>

int main()
{
    cout << "Hallo";
}

produces

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

How do I get the stdlib?

Some programmer dude
  • 400,186
  • 35
  • 402
  • 621
user5262
  • 391
  • 5
  • 11
  • You need to get a standard library as well. See if [libc++](http://libcxx.llvm.org/) is available for Windows. – Some programmer dude Jun 29 '13 at 16:41
  • Thank you for your response! It seems it does partially work on Windows: http://libcxx.llvm.org/results.Windows.html – user5262 Jun 29 '13 at 16:44
  • Wouldn't you need to use `std::cout` as well? – Michael Rawson Jun 29 '13 at 16:47
  • @Michael: Yes, but this produces the same error. – user5262 Jun 29 '13 at 16:48
  • @user5262: Sure, I was just stating the fact for completeness' sake. – Michael Rawson Jun 29 '13 at 19:21
  • libc++ does not work on windows (tried to compile it a few days ago on windows and it totally failed). Use libstc++ combined with mingw instead, works fine for me. Read http://stackoverflow.com/questions/6525245/getting-clang-to-work-on-windows carefully, especially this post http://stackoverflow.com/a/6525707/1392778 . – Thomas Jun 29 '13 at 21:42

0 Answers0