# FMOD Unreal - No such file or directory

**URL:** <https://qa.fmod.com/t/fmod-unreal-no-such-file-or-directory/14966>\
**Category:** Unreal Engine\
**Created:** [August 20, 2019, 11:47am UTC](https://qa.fmod.com/t/fmod-unreal-no-such-file-or-directory/14966 "2019-08-20T11:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![truepaddii](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/truepaddii/32/623_2.png) [@truepaddii](https://qa.fmod.com/u/truepaddii)\
**Post date:** [August 20, 2019, 11:47am UTC](https://qa.fmod.com/t/fmod-unreal-no-such-file-or-directory/14966/1 "2019-08-20T11:47:15Z")

</div>

Hello,

I’m trying to create an AudioComponent in cpp code in my project. I’ve downloaded the plugin files to _Plugins/FMODStudio/_ and generated a solution file for my project using FMOD as a plugin. It works so far using the Audio Component in Engine via blueprints etc. But now trying to transfer it into cpp code Visual Studio says **fatal error C1083: “FMODAudioComponent.h”: No such file or directory** at compile time. The directory seems to be included however. The code look like this:

 ![code](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/b71cdfd5b3fa92408e5e843e28fb7492e7b569ae.png)

I’ve used a forward declaration in the header file. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![truepaddii](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/truepaddii/32/623_2.png) [@truepaddii](https://qa.fmod.com/u/truepaddii)\
**Post date:** [August 21, 2019, 4:04pm UTC](https://qa.fmod.com/t/fmod-unreal-no-such-file-or-directory/14966/2 "2019-08-21T16:04:03Z")

</div>

I’ve solved the problem by adding the following line to the Build.cs file in the code directory:  
`PrivateDependencyModuleNames.AddRange(new string[] { "FMODStudio" });`  
Turns out it sometimes really is too obvious to notice it. I hope this is helpful for others in the future. 🙂
