0

I am making a C++ project where I want to be able to include the header file with angular brackets. I have seen people do this from IDE's, is it possible to do this from the terminal?

MaximV
  • 155
  • 11
  • 1
    Depends on the compiler. In gcc/clang, the option is called "-I /path/to/include/dir". – Philipp Claßen May 15 '20 at 22:10
  • 1
    Maybe useful: [What is the difference between #include and #include “filename”?](https://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename). Dispite the title, it has some good info related to this question (I believe). – Ted Lyngmo May 15 '20 at 22:16
  • 1
    @PhilippClaßen Is this command used like ```g++ -Idirectory```? – MaximV May 15 '20 at 22:18
  • 1
    @MaximV Exactly. However, some clarification as I just see it. You will not have to use <>, but you can use "" then. <> should be reserved for system libraries. – Philipp Claßen May 15 '20 at 22:21

0 Answers0