-
-
Save luto/7b6166ba4d88c06bb5f791994829e07f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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