I’ve been writing a library lately for my C++ computer class. I would like to put all my .lib and my header files inside a folder outside the project that’s going to be calling the library. How can I call the library header files using the < > operators instead of the ” “?
I’m using visual studio [specifically VS03]
Thanks,
Y_Y
To include files in a separate directory from the directory where your source files are, you must add the directory with the headers to your “Additional Include Directories” property in the “C\C++, General” property page for your project. Then you can include the headers with either <> or “”.
See http://msdn.microsoft.com/en-us/library/36k2cdd4(VS.71).aspx
The quote form just searches in the “.” directory first.