Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between #import "xxx" and #import <xxx>? [duplicate]

Possible Duplicate:
What is the difference between #include <filename> and #include “filename”?
Difference between writing #import <filename.h> and #import “filename.h” i.e written the file name in angular brackets and quotes?

This might be a stupid question. What is the difference between #import <QuartzCore/QuartzCore.h> and #import "QuartzCore/QuartzCore.h"? (greater-than/less-than vs the double-quotes)

They both seem to work.

like image 476
pixelfreak Avatar asked Dec 07 '11 23:12

pixelfreak


1 Answers

In general the #import "QuartzCore/QuartzCore.h" form is "find my very own header, if you can't find it look for a system header", and the <QuartzCore/QuartzCore.h> form is "find a system header". In theory the locations are compiler defined and they could be implemented differently on a given platform, but I haven't run into a C compiler that does anything different.

like image 126
Stripes Avatar answered Oct 22 '22 17:10

Stripes