Difference between writing #import <filename.h> and #import "filename.h" i.e written the file name in angular brackets and quotes? [duplicate]
Asked Answered
M

1

1

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

Difference between writing #import and #import "filename.h" i.e written the file name in angular brackets and quotes?

Monogenesis answered 1/7, 2010 at 9:14 Comment(0)
B
2

Quoted form This form instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of any files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable.

Angle-bracket form This form instructs the preprocessor to search for include files first along the path specified by the /I compiler option, then, when compiling from the command line, along the path specified by the INCLUDE environment variable.

Source http://msdn.microsoft.com

Biforate answered 1/7, 2010 at 9:27 Comment(2)
This question is about Xcode, so I don't quite understand why you're referring to MSDN...Jessabell
@Glenn85, the same thing applies to XcodeGrainfield

© 2022 - 2024 — McMap. All rights reserved.