Skip to content

Instantly share code, notes, and snippets.

@luto
Created December 5, 2018 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luto/7b6166ba4d88c06bb5f791994829e07f to your computer and use it in GitHub Desktop.
Save luto/7b6166ba4d88c06bb5f791994829e07f to your computer and use it in GitHub Desktop.
$ 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