Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ docker run -ti --rm centos:7
[root@449a4d52fdc0 /]# yum install clang -y
(...)
Installing:
clang
Installing for dependencies:
libstdc++-devel
llvm
llvm-libs
Updating for dependencies:
libstdc++
(...)
[root@449a4d52fdc0 /]# cat test.cpp
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
[root@449a4d52fdc0 /]# clang++ test.cpp
test.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
^
1 error generated.
[root@449a4d52fdc0 /]# head /usr/include/c++/4.8.2/iostream
// Standard iostream objects -*- C++ -*-
// Copyright (C) 1997-2013 Free Software Foundation, Inc.
//
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment