This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

difference between and " " for # include

What is the difference between these two sentence:( <> and " ")?

#include <rtl.h>

#include "rtl.h"

Parents
  • When you use <> the compiler looks in the compilers standard include directories.

    When you do "" it first looks relative the current directory.

    You should use "" for your include files and <> for header files supplied with the compiler.

    By the way - this is documented in any book about C/C++ programming and also in the language standard. I recommend that you get a good book to read. When done, then get the official language and use as a reference.

Reply
  • When you use <> the compiler looks in the compilers standard include directories.

    When you do "" it first looks relative the current directory.

    You should use "" for your include files and <> for header files supplied with the compiler.

    By the way - this is documented in any book about C/C++ programming and also in the language standard. I recommend that you get a good book to read. When done, then get the official language and use as a reference.

Children