Errors LNK1181 and CR0101 - FMod

Hi,

I’m trying to build a C++ project in UE4. When I try building the game I get a build error LNK1181. I’m working through the solution to that (from here) which requires right-clicking the .uproject file and selecting “Generate Visual Studio Files”. When I do this, I get error CR0101, as below.

I understand that this is basically saying there is already a reference to FModStudio - but I’m unsure how to resolve it.

I’m using 4.7, after failed attempts to use 4.8 to launch the project. Due to incompatibility issues between UE4 and FMod, I require a solution for 4.7 :slight_smile:

Running X:/Game Engines/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe
-projectfiles -project="X:/Game Engines/Unreal Projects/CodeProject/CodeProject.uproject"
-game -rocket -progress Discovering modules, targets and source code for game... Errors detected while compiling X:\Game Engines\Unreal Projects\CodeProject\Intermediate\Build\BuildRules\ProjectFileGeneratorModuleRules.dll: x:\Game Engines\Unreal Projects\CodeProject\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(5,15) : error CS0101: The namespace 'UnrealBuildTool.Rules' already contains a definition for 'FMODStudio' x:\Game Engines\Unreal Projects\CodeProject\Plugins\FMODStudio\Source\FMODStudioEditor\FMODStudioEditor.Build.cs(5,15) : error CS0101: The namespace 'UnrealBuildTool.Rules' already contains a definition for 'FMODStudioEditor' x:\Game Engines\Unreal Projects\CodeProject\Plugins\FMODStudio\Source\FMODStudioOculus\FMODStudioOculus.Build.cs(5,15) : error CS0101: The namespace 'UnrealBuildTool.Rules' already contains a definition for 'FMODStudioOculus' UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

Fixed.

I had included a Plugins\FMod folder in my project directory.