# Separating File Functions in Windows Visual Studio C++

**URL:** <https://forum.codewithmosh.com/t/separating-file-functions-in-windows-visual-studio-c/23249>\
**Category:** C++\
**Created:** [October 24, 2023, 10:47pm UTC](https://forum.codewithmosh.com/t/separating-file-functions-in-windows-visual-studio-c/23249 "2023-10-24T22:47:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EJCoder](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@EJCoder](https://forum.codewithmosh.com/u/EJCoder)\
**Post date:** [October 24, 2023, 10:47pm UTC](https://forum.codewithmosh.com/t/separating-file-functions-in-windows-visual-studio-c/23249/1 "2023-10-24T22:47:51Z")

</div>

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

 ![screenshot](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/d/d5ab499e03bc62f78b553a21c6a43e2370a0f137.png)

---

<div class="post-metadata">

**Author:** ![POMPOMBALLS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/pompomballs/32/6610_2.png) [@POMPOMBALLS](https://forum.codewithmosh.com/u/POMPOMBALLS)\
**Post date:** [October 30, 2023, 3:11pm UTC](https://forum.codewithmosh.com/t/separating-file-functions-in-windows-visual-studio-c/23249/2 "2023-10-30T15:11:37Z")

</div>

Well.

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