| re: VS .NET, violates listing order in "Additional Include Directories"
Arpi Jakab wrote:[color=blue]
> The .cpp file in question does not further qualify the name of the
> header file.
>
> The .cpp file is "main.cpp", which includes "XXXProduct.ver". The[/color]
Where is Product.ver located? If it's in "..\Share\Include", then that's
your problem. The compiler always looks for a #included file in the
directory that contains the including file first (if it's a #include "file",
not a #include <file>, in which case the directory where the including file
was found is ignored).
[color=blue]
> .ver file includes "cppfile1.h". Instead of getting it from include
> path "..\BasicOuterLayer\Dist\Include" it gets it from
> "..\Share\Include".
>
> Also, once I have been able to
> build and link successfully, I cannot reproduce the problem when the
> wrong version of "cppfile1.h" is copied back to "..\Share\Include".[/color]
How a difference could survive a full rebuild is hard to envision.
Surviving a normal build is entirely possible, depending on usage of
precompiled headers.
-cd |