Windows Vista Beta | WinVistaBeta.com - Message | Additional Include Directories, how to add sub folder?

November 21, 2008  
Subject: Additional Include Directories, how to add sub folder?
Group: microsoft.public.vstudio.general
Date: 9/8/2008 12:12:53 PM
From: Michael Reichenbach [Email Address Protection]

Hi!

I've added an include folder under project settings. The included files
inside the folder will be found.

But any include file inside the new folder that will include another one
in /subdir/header.h will not be found.

How can I tell VS 05 to search also all subfolders of include directory's ?

Regards,
-mr

Back
Subject: Re: Additional Include Directories, how to add sub folder?
Group: microsoft.public.vstudio.general
Date: 9/9/2008 1:57:06 AM
From: David Wilkinson [Email Address Protection]

Michael Reichenbach wrote:
> Hi!
>
> I've added an include folder under project settings. The included files
> inside the folder will be found.
>
> But any include file inside the new folder that will include another one
> in /subdir/header.h will not be found.
>
> How can I tell VS 05 to search also all subfolders of include directory's ?

Michel:

You don't like to put the path in the #include itself:

#include "subdir/header.h"

?

--
David Wilkinson
Visual C++ MVP

Back
Subject: Re: Additional Include Directories, how to add sub folder?
Group: microsoft.public.vstudio.general
Date: 9/9/2008 5:31:01 AM
From: Michael Reichenbach [Email Address Protection]

David Wilkinson schrieb:
> Michael Reichenbach wrote:
>> Hi!
>>
>> I've added an include folder under project settings. The included files
>> inside the folder will be found.
>>
>> But any include file inside the new folder that will include another one
>> in /subdir/header.h will not be found.
>>
>> How can I tell VS 05 to search also all subfolders of include
>> directory's ?
>
> Michel:
>
> You don't like to put the path in the #include itself:
>
> #include "subdir/header.h"
>
> ?
>

No I really don't like to to this, because its a third party library
that wants to #include "subdir/header.h" and for maintenance reasons I
don't want to mess with this library.

Also adding all subfolders myself would be kinda a mess because it are a
lot.

Regards,
-mr

Back