[vtkusers] " " vs < > for includes

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 19 10:45:50 EST 2009


On this microsoft page, the difference is the search order for finding
the included file:

http://msdn.microsoft.com/en-us/library/36k2cdd4.aspx

Another site, for linux:

http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/compiler/ref/tuinclud.htm


Bill

On Thu, Nov 19, 2009 at 10:22 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> I noticed that most of the includes are done like this:
> #include "vtkPolyData.h"
>
> Don't the quotes mean "look in the current directory", where
> #include <vtkPolyData.h>
>
> means "look on the PATH"?
>
> If this is correct, shouldn't they all use <> since we want to find
> headers in all of the subdirectories (VTK/Graphics, VTK/Filtering,
> etc), which I assume have been put on a header_path type variable by
> cmake?
>
> It clearly works the way it is and I'm sure it is "correct" since the
> whole project does it like this, I was just curious.
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list