Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.60 KB | None | 0 0
  1. [glaberge@rostam1 cpp_test]$ clang++ main.cpp -o hello_world
  2. [glaberge@rostam1 cpp_test]$ ls
  3. Cmake_test  hello_world  main.cpp
  4. [glaberge@rostam1 cpp_test]$ export CPLUS_INCLUDE_PATH=/usr/include/
  5. [glaberge@rostam1 cpp_test]$ clang++ main.cpp -o hello_world
  6. In file included from main.cpp:1:
  7. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/iostream:39:
  8. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/ostream:38:
  9. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/ios:42:
  10. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/ios_base.h:41:
  11. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/locale_classes.h:40:
  12. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/string:52:
  13. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/basic_string.h:5417:
  14. In file included from /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/ext/string_conversions.h:41:
  15. /opt/rh/devtoolset-6/root/usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/cstdlib:75:15: fatal error: 'stdlib.h' file not found
  16. #include_next <stdlib.h>
  17.               ^~~~~~~~~~
  18. 1 error generated.
  19. [glaberge@rostam1 cpp_test]$ why?????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement