Problem with "additional include directories" and C2065
Hi,
I have Visual Studio 6.0 (patch 5) and need to have the includes (in a subdirectory of the project) in the project path and I added a path via "additional include directories" and I get following error messages:
If I put the paths in the studio settings it works fine (cannot use this because those settings must not be changed) but not otherwise. It also works if I put all standard paths from the visual studio (3 that give a **** long string) and put them before my additional directories into the "additional include directories" textbox and disable the default include directories but that is also completely unacceptable.
Re: Problem with "additional include directories" and C2065
I suspect you don't have the necessary include directives.
Do you use #include "memory.h" or #include "string.h" ? These are the header files where memset and memcmp are declared.
(The <> symbols should be used only if you want the compiler to look in the standard include directories.)
You can also use something like this:
#include "C:\\MyFolder\\memory.h";
Re: Problem with "additional include directories" and C2065
Thanks for your replies but none of them really helped.
The problem is very easy to reproduce. Just make an new mfc project and add any relative path into the "additional include directories" and the project will fail with:
As you can see the error messages are somewhere in the visual c++ includes themself and outside of my code. I looked in it and found just uses of memset and memcmp and the like that fail.
I somehow have to include the directories of the include files in the project because I have several versions of the same files for different projects and that is the only way I know how to. Can someone please help me with this ?
Last edited by Zaph-0; December 23rd, 2007 at 08:56 AM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.