Locating iostream in Clang++: fatal error: 'iostream' file not found
问题 I wrote the following simple C++ program: #include <iostream> using namespace std; int main() { cout << "Hello, World" << endl; return 0; } When I compile this with g++, it works perfectly. When I try to compile with Clang++, I get the following error: main.cpp:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. Running with the -v parameter, I see the following: ignoring nonexistent directory "/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../..