Separating File Functions in Windows Visual Studio C++

Hi guys,

I am nearing completion on Mosh’s Fundamental’s of C++ training and am running into an issue near the end of the course when we are taught how to separate function definitions and declarations into a “utils” folder.

I have followed the instructions as illustrated in the video but am running into an issue. Despite my utils folder being created within my Project / Solution, the main.cpp cannot seem to find the “utils/greet.hpp” file. My main.cpp file is located in a source files folder, idk if that changes anything.

I have attached a screenshot of how it looks on my end. If anyone has a solution, I would greatly appreciate the help.

Best,
Eric

Well.

In greet.cpp you should include "greet.h" instead of <iostream> because definition of greet() is in greet.cpp.