# Unable to compile project for Switch

**URL:** <https://qa.fmod.com/t/unable-to-compile-project-for-switch/14596>\
**Category:** Unreal Engine\
**Created:** [April 20, 2019, 3:23pm UTC](https://qa.fmod.com/t/unable-to-compile-project-for-switch/14596 "2019-04-20T15:23:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marciorosa](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@marciorosa](https://qa.fmod.com/u/marciorosa)\
**Post date:** [April 20, 2019, 3:23pm UTC](https://qa.fmod.com/t/unable-to-compile-project-for-switch/14596/1 "2019-04-20T15:23:20Z")

</div>

Hello, I’m not able to compile my game for Nintendo Switch since I added the FMOD to it, but it builds fine for Windows. I’m using Unreal Engine 4.20.

I have no idea if the problem is related to the engine, or related to FMOD, or maybe something I am doing wrong.

These are the erros, all saying that are some undefined references:

```
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAssetTable.cpp:38: error: undefined reference to 'FMOD::Studio::System::getLowLevelSystem(FMOD::System**) const'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:287: error: undefined reference to 'FMOD::Studio::EventInstance::setParameterValue(char const*, float)'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:549: error: undefined reference to 'FMOD::Studio::System::getLowLevelSystem(FMOD::System**) const'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:671: error: undefined reference to 'FMOD::Studio::EventDescription::getParameter(char const*, FMOD_STUDIO_PARAMETER_DESCRIPTION*) const'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:680: error: undefined reference to 'FMOD::Studio::EventInstance::setParameterValue(char const*, float)'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:823: error: undefined reference to 'FMOD::Studio::EventInstance::setParameterValue(char const*, float)'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:904: error: undefined reference to 'FMOD::Studio::EventInstance::getParameter(char const*, FMOD::Studio::ParameterInstance**) const'
4> C:\Users\marci_000\Projects\Squad51\Plugins\FMODStudio\Source\FMODStudio\Private/FMODAudioComponent.cpp:908: error: undefined reference to 'FMOD::Studio::ParameterInstance::getValue(float*) const'

```

What I already did:

- I copied the FMODStudio folder to MyProject/Plugins folder (remember that it works fine on Windows)
- I also copied the source files and library files of the FMOD for Switch
- Inside my .uproject file, I have this entry: { “Name”: “FMODStudio”, “Enabled”: true }
- Inside my build file (.cs), I have this entry: PrivateDependencyModuleNames.AddRange(new string[] { “FMODStudio” });

If there are some step I should have done and I didn’t, I don’t know what it is.

Any help will be appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [April 24, 2019, 3:54am UTC](https://qa.fmod.com/t/unable-to-compile-project-for-switch/14596/2 "2019-04-24T03:54:04Z")

</div>

What version of FMOD are you using?  
Did you make sure to add the Switch Integration package on top of the base Windows/Mac/Linux Integration?

---

<div class="post-metadata">

**Author:** ![marciorosa](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@marciorosa](https://qa.fmod.com/u/marciorosa)\
**Post date:** [April 24, 2019, 7:08pm UTC](https://qa.fmod.com/t/unable-to-compile-project-for-switch/14596/3 "2019-04-24T19:08:15Z")

</div>

Never mind. I think I downloaded different versions of FMOD, I didn’t see the version selector combo in the website. It’s working now, thanks.
