-2

Possible Duplicate:
What is the difference between #include <filename> and #include “filename”?

What is the meaning of include "abc.h" and how it is different from include ?

Community
  • 1
  • 1
Adamant Argh
  • 83
  • 2
  • 8
  • here you go, do some searching next time http://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename?rq=1 – Oerd Feb 05 '13 at 15:36

3 Answers3

0

Including "abc.h" will look in the current directory. <abc.h> will look in the include directory, which can be provided at compile-time.

Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
  • 2
    Including "abc.h" will look in the current directory and if it is not found there, it also checks include path directory. – Vikram Singh Feb 05 '13 at 15:37
  • Ah. Never knew that :). – Bart Friederichs Feb 05 '13 at 15:38
  • I can't find a particular header file in current directory but it is in some other directory other than include , hence compiler is unable to open it . Can copying it to current directory may help ? – Adamant Argh Feb 05 '13 at 15:46
  • Yes, definitely. Copy it to the directory containing your other cpp/header files of the current project and include it using double quotes. – Vikram Singh Feb 05 '13 at 16:09
0

<abc.h> is usually for built-in use such as math while "abc.h" is usually for customized use.

tech_me
  • 540
  • 2
  • 7
  • 20
0

is being looked for in your header include path and "abc.h" relative to your source file's path first.

wirrbel
  • 3,173
  • 3
  • 26
  • 49