I’m starting with a new Win32 console app project in Visual Studio 2010. I am setting up my environment to support beginner level OpenGL programs. I am in the process of adding required *.cpp files and *.h files. I added
#include "../../shared/gltools.h"//opengl toolkit
Error “cannot open source file” is displayed when I hover over #include. I attempted to add the required file. I right click Source files and choose > Add > New Filter > called it shared and hit enter.
What is a filter? I thought I would be adding a physical folder rather than a filter. How does this differ from “External Dependencies”?
In the project properties, unde Compiler, find the field Additional Include Directories and add the directory where the file is located, or, alternatively, the directory where
/shared/is located.