-
-
Notifications
You must be signed in to change notification settings - Fork 744
Closed
Labels
Description
ci: xmake-io/xmake-repo#4927
Caused by #3935
AILED: [code=2] libvips/iofuncs/libiofuncs.a.p/init.c.obj
"cl" "-Ilibvips\iofuncs\libiofuncs.a.p" "-Ilibvips\iofuncs" "-I..\libvips\iofuncs" "-I." "-I.." "-Ilibvips\include" "-I..\libvips\include" "-Ilibvips\include\vips" "-IC:/Users/star/AppData/Local/.xmake/packages/g/glib/2.85.0/46e3363054254477ad96658dfd633476/include/glib-2.0" "-IC:/Users/star/AppData/Local/.xmake/packages/g/glib/2.85.0/46e3363054254477ad96658dfd633476/lib/glib-2.0/include" "-IC:/Users/star/AppData/Local/.xmake/packages/p/pcre2/10.44/9b468ecc54774b6380662dcf6bc58354/include" "-IC:/Users/star/AppData/Local/.xmake/packages/g/glib/2.85.0/46e3363054254477ad96658dfd633476/include" "-IC:/Users/star/AppData/Local/.xmake/packages/l/libffi/3.4.8/c7e4419a168c46f69dbafcfadc8e9e61/include" "-IC:/Users/star/AppData/Local/.xmake/packages/z/zlib/v1.3.1/95786712bac941e795afa187a68143a4/include" "-IC:/Users/star/AppData/Local/.xmake/packages/e/expat/2.7.3/a6b039dab6004ca69f17d614e46fbee7/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W2" "/Od" "/Zi" "-DDEBUG_LEAK" "-DUNICODE" "-D_UNICODE" "-external:W0" "-external:IC:\Users\star\AppData\Local\.xmake\packages\l\libintl\0.22.3\d69e99b4b2d542358a76bb53969dd527\include" "-DXML_STATIC" "-DFFI_STATIC_BUILD" "-DPCRE2_CODE_UNIT_WIDTH=8" "-DPCRE2_STATIC" "-DHAVE_CONFIG_H" "/Fdlibvips\iofuncs\libiofuncs.a.p\init.c.pdb" /Folibvips/iofuncs/libiofuncs.a.p/init.c.obj "/c" ../libvips/iofuncs/init.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um\winnt.h(169): fatal error C1189: #error: "No Target Architecture"This error occurs because <processthreadsapi.h> is included directly. In the Windows SDK, many sub-headers (like winnt.h) require a target architecture macro (e.g., _AMD64_, _X86_) to be defined. These are typically handled automatically when including the main <windows.h> header, but are missing when including low-level headers in isolation.
Wrokaround
- #include <processthreadsapi.h>
+ #include <windows.h>Reactions are currently unavailable