Sorry for posting such a lowly beginner’s question, but I just still don’t know my way around Visual Studios yet. I’m trying to compile a code in C++ Visual Studios:
#include "Banana.h"
int main(int argc, char* argv[])
{
fruit::Banana banana;
banana.dance();
return 0;
}
and I’m getting an error
fatal error C1083: Cannot open
include file: ‘Banana.h’: No such
file or directory
But in the Solution Explorer under the project that I’m working with there is a source folder labeled “fruit/Header Files” and within that folder is “Banana.h”. I thought that everything in the source folders within the same project were automatically on the source path. What gives?
You will need to configure additional include paths. If you go to the Project Properties, you’ll find it under
Configuration Properties,C/C++at the top.