+ 1

Is there any difference between including the header file within angular braces <> or double quotes" "?

10th Dec 2017, 4:03 AM
Rahul Jain
Rahul Jain - avatar
2 Antworten
+ 4
When you use angle brackets, the compiler searches for the file in the include path list. When you use double quotes, it first searches the current directory (i.e. the directory where the module being compiled is) and only then it'll search the include path list. So, by convention, you use the angle brackets for standard includes and the double quotes for everything else. This ensures that in the (not recommended) case in which you have a local header with the same name as a standard header, the right one will be chosen in each case..
10th Dec 2017, 5:17 AM
Bits!