I am trying to get my project which builds fine on Linux to port to Visual Studio 2008.
At the moment, I am stumped by the behavior of include files where the inclusion specifies a directory path like #include <botan/zlib.h>
. There is a zlib.h file in my project, but it seems in visual studio you do not have a directory structure of files, but instead just a collection of files, and thus the path to a file is not relevant.
How can I teach Visual Studio to resolve include files where part of the path to the file is specified?
The path in VS is exactly as relevant as anywhere else. If you want to #include <botan/zlib.h>
, and the actual path is C:\folder\botan\zlib.h
- you must add C:\folder\
to include path.
P. S. Project tree in VS is indeed unrelated to the physical project structure in filesystem. If you want to make your project look nice - use filters (right click on project or filter -> Add -> New Filter).