# UE4 build error

**URL:** <https://forums.unrealengine.com/t/ue4-build-error/457613>\
**Category:** Platform & Builds\
**Tags:** compiling, build, unreal-engine, question, build-editor\
**Created:** [October 27, 2019, 1:46pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613 "2019-10-27T13:46:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnepr\_step](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dnepr\_step](https://forums.unrealengine.com/u/dnepr_step)\
**Post date:** [October 27, 2019, 1:46pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/1 "2019-10-27T13:46:25Z")

</div>

On building the UE4 editor i got the error.  
I’m using the official tutorial for that ([Building Unreal Engine from Source | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/Programming/Development/BuildingUnrealEngine/index.html))  
Using MVS 2017, 2019  
Any ideas?  
Thanks

1\>CMakeCCompilerId.c.obj : error LNK2005: main already defined in Module.ResonanceAudio.cpp.obj  
1\>main.c.obj : error LNK2005: main already defined in Module.ResonanceAudio.cpp.obj  
1\> Creating library C:\Coding\Engine\Plugins\Runtime\ResonanceAudio\Intermediate\Build\Win64\UE4Editor\Development\ResonanceAudio\UE4Editor-ResonanceAudio.suppressed.lib and object C:\Coding\Engine\Plugins\Runtime\ResonanceAudio\Intermediate\Build\Win64\UE4Editor\Development\ResonanceAudio\UE4Editor-ResonanceAudio.suppressed.exp  
1\>C:\Coding\Engine\Plugins\Runtime\ResonanceAudio\Binaries\Win64\UE4Editor-ResonanceAudio.dll : fatal error LNK1169: one or more multiply defined symbols found  
1\>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…\Build\BatchFiles\Build.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command.  
1\>Done building project “UE4.vcxproj” – FAILED.

Error LNK2005 main already defined in Module.ResonanceAudio.cpp.obj UE4 C:\Coding\Engine\Intermediate\ProjectFiles\CMakeCCompilerId.c.obj 1   
Error LNK2005 main already defined in Module.ResonanceAudio.cpp.obj UE4 C:\Coding\Engine\Intermediate\ProjectFiles\main.c.obj 1   
Error LNK1169 one or more multiply defined symbols found UE4 C:\Coding\Engine\Plugins\Runtime\ResonanceAudio\Binaries\Win64\UE4Editor-ResonanceAudio.dll 1   
Error MSB3075 The command “…\Build\BatchFiles\Build.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 44

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a3cecd9b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a3cecd9b](https://forums.unrealengine.com/u/anonymous_user_a3cecd9b)\
**Post date:** [July 28, 2020, 11:40am UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/2 "2020-07-28T11:40:19Z")

</div>

I’m getting the same error with a fresh clone of UE 4.25

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0117a655](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0117a655](https://forums.unrealengine.com/u/anonymous_user_0117a655)\
**Post date:** [August 31, 2020, 7:02am UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/3 "2020-08-31T07:02:05Z")

</div>

Did you find a solution?  
I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![kevinleit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevinleit](https://forums.unrealengine.com/u/kevinleit)\
**Post date:** [October 15, 2020, 3:02pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/4 "2020-10-15T15:02:43Z")

</div>

I have this issue too. I just removed Windows from the WhitelistPlatforms in ResonanceAudio.uplugin so I’m not building it and I can use the engine now. Of course if I was planning on using this that’d not be great, so just a hack to move forward.

---

<div class="post-metadata">

**Author:** ![exitlights2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exitlights2](https://forums.unrealengine.com/u/exitlights2)\
**Post date:** [December 29, 2020, 7:13am UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/5 "2020-12-29T07:13:42Z")

</div>

Those CMake source files (e.g. CMakeCCompilerId) are used by CMake to perform some diagnostics in the process of creating build files, they really shouldn’t be getting ingested into producing that UE4Editor-ResonanceAudio.dll. UnrealBuildTool, during some step of its execution, will hunt through project subdirectories and vacuum up .cpp files when determining which objects to compile and link into libraries, and it’s doing this for the ResonanceAudio plugin. Make sure that these source files (e.g. CMakeCCompilerId.cpp) are removed before the build tool runs. I did this and it built fine. Probably these source files shouldn’t be checked in, or should be ignored as part of the build if they’re appearing because of CMake running.

---

<div class="post-metadata">

**Author:** ![UNCLEMUSCLEZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UNCLEMUSCLEZ](https://forums.unrealengine.com/u/UNCLEMUSCLEZ)\
**Post date:** [April 9, 2021, 7:58pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/6 "2021-04-09T19:58:55Z")

</div>

@exitlights2 and @kevinleit seem to be correct. This is the only solution I have found. The ResonanceAudio SDK for Unreal seems to be maintained by Unreal and there is no documentation on how to compile it separately. However, the documentation and repositories exist for other platforms.

---

<div class="post-metadata">

**Author:** ![AyrunStudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayrunstudio/32/549009_2.png) [@AyrunStudio](https://forums.unrealengine.com/u/AyrunStudio)\
**Post date:** [February 28, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/7 "2022-02-28T15:10:50Z")

</div>

I remove a “out/build” directory somewhere in Engine\Plugins\Runtime\ResonanceAudio\Source\ResonanceAudio\Private\ResonanceAudioLibrary.  
Built UE4 it again, and link without error.  
(don’t know from where these folder came from)

Also, solution of removing “Windows” of WhitelistPlatforms work, but not ideal

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9fb1f277](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9fb1f277](https://forums.unrealengine.com/u/anonymous_user_9fb1f277)\
**Post date:** [March 17, 2022, 3:55am UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/8 "2022-03-17T03:55:31Z")

</div>

This worked on Windows 10 as well by removing the “out/build” directory, which is at Engine\Plugins\Runtime\ResonanceAudio\Source\ResonanceAudio\Private\ResonanceAudioLibrary\resonance\_audio

---

<div class="post-metadata">

**Author:** ![Seamus1995](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seamus1995/32/755243_2.png) [@Seamus1995](https://forums.unrealengine.com/u/Seamus1995)\
**Post date:** [June 20, 2022, 1:54pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/9 "2022-06-20T13:54:27Z")

</div>

This also worked on UE5+Win10+VS2019.

---

<div class="post-metadata">

**Author:** ![Vtech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vtech](https://forums.unrealengine.com/u/Vtech)\
**Post date:** [March 12, 2023, 9:00pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/10 "2023-03-12T21:00:39Z")

</div>

this worked windows 11+UE5+VS2022

---

<div class="post-metadata">

**Author:** ![NaveenDevaraj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NaveenDevaraj](https://forums.unrealengine.com/u/NaveenDevaraj)\
**Post date:** [November 23, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/11 "2023-11-23T15:53:00Z")

</div>

Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 6.  
3\>Done building project “UE5.vcxproj” – FAILED.  
I have this error. Kindly help me to solve this issue.  
Thanks.

---

<div class="post-metadata">

**Author:** ![vlab22](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vlab22/32/751227_2.png) [@vlab22](https://forums.unrealengine.com/u/vlab22)\
**Post date:** [January 27, 2024, 6:13pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/12 "2024-01-27T18:13:58Z")

</div>

Solved for Win11 + UE5.3.2 oculus-5.3 branch + VS2022

---

<div class="post-metadata">

**Author:** ![fkrstevski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fkrstevski](https://forums.unrealengine.com/u/fkrstevski)\
**Post date:** [February 3, 2024, 3:08pm UTC](https://forums.unrealengine.com/t/ue4-build-error/457613/13 "2024-02-03T15:08:56Z")

</div>

Were you able to fix this issue?
