-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
buildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:windowsAffects only WindowsAffects only Windows
Description
When compiling against the Julia nightlies using MSVC, the following error appears:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\winnt.h(154,1): fatal error C1189: #error: "No Target Architecture" [C:\projects\libcxxwrap-julia\build\cxxwrap_julia.vcxproj]
This comes from including errhandlingapi.h directly, here:
Line 351 in 2835347
| #include <errhandlingapi.h> |
On my local machine, I found a crude workaround, but I doubt this will work in all cases:
#ifdef _OS_WINDOWS_
#define DWORD unsigned long
extern "C" __declspec(dllimport) DWORD __stdcall GetLastError();
extern "C" __declspec(dllimport) void __stdcall SetLastError(DWORD dwErrCode);
#endifMetadata
Metadata
Assignees
Labels
buildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:windowsAffects only WindowsAffects only Windows