Ambiguous symbol. Build Error

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:

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…

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!

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.

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.

Dang. No circular dependencies here.

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.

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.