Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Trunk Windows CMake builds are broken

From: "Shanks, Graham (UK)" <graham.shanks@xxxxxxxxxxxxxx>
Date: Thu, 21 Aug 2014 10:18:51 +0000

On 21 August 2014 10:31, Graham Bloice <graham.bloice@xxxxxxxxxxxxx> wrote:

> [snip] I've always had the idea that angle bracket form was for system or
> platform includes and quoted form for project includes, but maybe I was just confused.

 

Strictly speaking, according to the standard, both forms search “a sequence of implementation-defined places” for the defined header (not necessarily the same set of places for the different forms). The definition of these search sequences for Visual Studio 2010 can be found in http://msdn.microsoft.com/en-us/library/36k2cdd4(v=vs.100).aspx. GCC is similar (see http://gcc.gnu.org/onlinedocs/gcc-4.1.2/cpp/Include-Syntax.html)

 

So generally the quoted form will search locally first (for a given value of locally) before searching in the specified include paths, whilst the angle bracket form will only search the specified include paths. However this is not guaranteed (so a perverse compiler might search your complete hard drive for a matching file!)

 

Regards,
Graham

BAE Systems Integrated System Technologies Limited
Registered Office: Warwick House, PO Box 87, Farnborough Aerospace Centre, Farnborough, Hants, GU14 6YU, UK
Registered in England & Wales No: 3456325

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************