Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncStatus ambiguous symbol when using DirectXTK with "DirectX 11 and XAML app" template #52

Closed
johanlindfors opened this issue Aug 12, 2016 · 3 comments
Assignees
Labels

Comments

@johanlindfors
Copy link

Installing the latest version of DirectXTK from Nuget (2016.8.4.1) into a project based on the "DirectX 11 and XAML app" Visual Studio template is causing build errors since AsyncState is an ambiguous symbol.

Well honestly, it only breaks when I add an include of SimpleMath.h in the pch.h.

But this worked earlier, any ideas on how to solve easiest?

This is on Windows 10 Anniversary Update, with Visual Studio 2015 Update 2

@johanlindfors
Copy link
Author

If I add #define DIRECTX_NO_WFRECT before any references of including SimpleMath.h the build works, but is that as planned or am I missing something else?

@walbourn
Copy link
Member

walbourn commented Aug 12, 2016

It seems Windows.Foundation.h conflicts with XAML headers. Maybe I'll make the ABI::Windows::Foundation::Rect interop opt-in rather than opt-out because the Windows::Foundation::Rect interop works fine without the #include that conflicts. Really the ABI interop may just be more trouble that it's worth.

@walbourn walbourn added the bug label Aug 12, 2016
@walbourn walbourn self-assigned this Aug 12, 2016
@walbourn
Copy link
Member

Just removed the ABI::Windows::Foundation::Rect, so we don't need the #Include at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants