fatal error: 'iostream' file not found
Question
cat buggy-code.cpp
#include <iostream>
#include <string>
#include <string_view>
int main() {
std::string s = "Hellooooooooooooooo ";
std::string_view sv = s + "World\n";
std::cout << sv;
}
clang++ -fsanitize=scudo -g buggy-code.cpp
buggy-code.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
^~~~~~~~~~
1 error generated.
Answer
sudo apt install libstdc++-12-dev