> Hi,
>
[quoted text clipped - 6 lines]
>
> #include "pathname/file"
... which must mean that the file being included is being found by a path
that's relative to the location of the file containing the #include
directive, as that's the only difference between #include "file" and
#include <file>. e.g.
ProjDir/
foo.cpp contains #include <bar/baz.h>
bar/
baz.h
Traditionally, this would be considered an inappropriate use of #include <>
as that was intended to be for system supplied header files, while #include
" " was intended to be used for headers that are part of your project.
> The file can be compiled. The only problem is that I do not want to
> edit the original source files as above, I just want to set up the
[quoted text clipped - 10 lines]
>
> Any help wil be much appreciated. Thanks
In the solution explorer, right-click on the project node and choose
Properties from the context menu. Find the C/C++/General node in the
tree-view of the properties window. Select All Configurations from the
Configuration combo-box at the top left of the dialog. In the Additional
Include Directories box, type $(ProjectDir). If there are already one or
more directories listed there, use a semi-colon to separate directories (the
UI will accept space-delimitted directories as well, but they won't be
searched properly - the compiler will see it as one long path). You can
also click on the little [...] button on the far-right of the edit box to
bring up a dialog that lets you build paths from the available project
macros and automatically adds the semicolon delimitters as well.
If that doesn't get you going, please reply with a description of the
directory structure of the project, including the locations of the file that
contains the #include as well as the file named in the #include.
-cd
Susan Baker - 02 Jul 2005 14:59 GMT
Thanks - I've got it sorted out now.
>>Hi,
>>
[quoted text clipped - 53 lines]
>
> -cd