tek256/astera

Error in Windows build (build_win.bat)

ttesla opened this issue · 2 comments

Describe the bug
I make Visual Studio 2019 project via Cmake but failed to build the project. It stucks on building "astera" project, thus can't produce astera.lib.

I get the same error message if I use build_win.bat file.

Error message is:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\winnt.h(154,1): fatal error C1189: #error: "No Target A
rchitecture" [C:\Users\eski
\Desktop\astera-main\build\astera.vcxproj]_

If I follow up the error, I get this:
error

To Reproduce
Make a build on Visual Studio 2019 Community Edition

Desktop (please complete the following information):

  • OS: Windows 10

Hey! Thanks for the issue report, this should be fixed with a37dfd8.
Turns out that xinput.h is including windef.h which doesn't have working architecture macros for some reason. So including windows.h before xinput.h fixed the issue.

Yes, I'm confirming that its fixed. Thank you ;)