# Ambiguous symbol. Build Error

**URL:** <https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379>\
**Category:** Pipeline & Plugins\
**Tags:** runuatbat-error, build, unreal-engine, bug-report, Visual-Studio, CPP, question\
**Created:** [July 27, 2016, 9:38pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379 "2016-07-27T21:38:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcda877b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcda877b1](https://forums.unrealengine.com/u/anonymous_user_dcda877b1)\
**Post date:** [July 27, 2016, 9:38pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/1 "2016-07-27T21:38:45Z")

</div>

I am having a lot of problems to build my game with Development target. I can build it without problems for editor, but I want to package it, so i am trying to Build it with Development target. I am using unreal 4.12.5

When I build, this errors appear:

 ![100390-ambiguous_symbol.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/7/1c737ff31b02ae1cc081fae6c238f2bfba90a5a1.png)

I tried to clean and rebuild, try another versions of the engine. Tried to engine with binaries and the one downloaded from source. I tried in 3 different computers. I created a blank project and paste the assets but nothing works, always this errors. This errors generate a MSB3075 error.

this is the log for the errors:

```
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(33): error C2872: 'terminate_handler': ambiguous symbol
1> C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void ( __cdecl *__ cdecl terminate_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(192): note: or 'std::terminate_handler'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(34): error C2872: 'terminate_handler': ambiguous symbol
1> C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void ( __cdecl *__ cdecl terminate_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(192): note: or 'std::terminate_handler'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(37): error C2872: 'terminate_handler': ambiguous symbol
1> C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h(18): note: could be 'void ( __cdecl *__ cdecl terminate_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(192): note: or 'std::terminate_handler'
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(35): error C2872: 'unexpected_handler': ambiguous symbol
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(19): note: could be 'void ( __cdecl *__ cdecl unexpected_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(193): note: or 'std::unexpected_handler'
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(36): error C2872: 'unexpected_handler': ambiguous symbol
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(19): note: could be 'void ( __cdecl *__ cdecl unexpected_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(193): note: or 'std::unexpected_handler'
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(39): error C2872: 'unexpected_handler': ambiguous symbol
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h(19): note: could be 'void ( __cdecl *__ cdecl unexpected_handler)(void)'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(193): note: or 'std::unexpected_handler'

```

I do not know what to do. I can not even overwrite those files:

‘eh.h’ and ‘corecrt\_terminate.h’

My machine says that I have denied access to that path. Please help…

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 28, 2016, 2:07pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/2 "2016-07-28T14:07:42Z")

</div>

Hello,

I have a few questions:

- Are you able to successfully build a clean project?
- Are you able to package the project through the editor using File-\>Package Project?
- Do you have administrative privileges while running Visual Studio? Have you tried running as administrator?

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_802c67ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_802c67ad](https://forums.unrealengine.com/u/anonymous_user_802c67ad)\
**Post date:** [July 29, 2016, 10:26pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/3 "2016-07-29T22:26:33Z")

</div>

I appear to be having the same problem, and my answer to this:  
Yes, I can build a clean project.  
No, I cannot package the project using file-\>package project.  
Running as administrator does not solve the issue in VS, or anywhere.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcda877b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcda877b1](https://forums.unrealengine.com/u/anonymous_user_dcda877b1)\
**Post date:** [July 29, 2016, 11:53pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/4 "2016-07-29T23:53:24Z")

</div>

Ok, i fixed it. It was a problem of circular dependencies. I dont know why it was working in 4.9.2, but now it doesnt.

Check your include files and fix that circular dependencies. It should work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_802c67ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_802c67ad](https://forums.unrealengine.com/u/anonymous_user_802c67ad)\
**Post date:** [July 30, 2016, 12:06am UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/5 "2016-07-30T00:06:05Z")

</div>

Dang. No circular dependencies here.

---

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [March 6, 2019, 6:36pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/6 "2019-03-06T18:36:27Z")

</div>

I’m noticing this with 4.19.2 with updated Visual Studio, what gives? The answers above give me no insight as to the exact problem and current solution.

---

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [March 18, 2019, 9:02pm UTC](https://forums.unrealengine.com/t/ambiguous-symbol-build-error/365379/7 "2019-03-18T21:02:28Z")

</div>

Solution for me was to remove one of my two string includes.  
I had

```
#include <string.h>

```

and

```
#include "string.h"

```

didn’t notice it and it randomly decided to throw the ambiguous error because of it till I got rid of one.
