-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fail to build on MacOS #27
Comments
A list of some of the errors: WindowsHModular/include/win32/windows.h:201:23: error: expected ';' after top level declarator
typedef signed __int64 INT64;
^
WindowsHModular/include/win32/windows.h:1007:5: error: unknown type name 'PCONTEXT'
PCONTEXT ContextRecord;
^
WindowsHModular/include/win32/windows.h:1151:9: error: unknown type name 'LPCONTEXT'
LPCONTEXT lpContext);
^
error: unknown type name 'CONTEXT'
CONTEXT Context;
^
WindowsHModular/include/win32/windows.h:1416:5: error: unknown type name 'CONTEXT'
CONTEXT Context;
^
WindowsHModular/include/win32/windows.h:1569:10: error: redefinition of '__int64' as different kind of symbol
unsigned __int64 __readfsqword(unsigned long Offset);
^
WindowsHModular/include/win32/windows.h:201:16: note: previous definition is here
typedef signed __int64 INT64;
^
WindowsHModular/include/win32/windows.h:1569:17: error: expected ';' after top level declarator
unsigned __int64 __readfsqword(unsigned long Offset);
^
WindowsHModular/include/win32/windows.h:2454:33: error: expected parameter declarator
typedef struct __declspec(align(16)) _MEMORY_BASIC_INFORMATION64 {
^
WindowsHModular/include/win32/windows.h:2454:33: error: expected ')'
WindowsHModular/include/win32/windows.h:2454:32: note: to match this '('
typedef struct __declspec(align(16)) _MEMORY_BASIC_INFORMATION64 {
^
WindowsHModular/include/win32/windows.h:2454:38: error: expected function body after function declarator
typedef struct __declspec(align(16)) _MEMORY_BASIC_INFORMATION64 {
^
WindowsHModular/include/win32/windows.h:2748:10: error: redefinition of '__int64' as different kind of symbol
unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 Number);
^
WindowsHModular/include/win32/windows.h:201:16: note: previous definition is here
typedef signed __int64 INT64;
^
WindowsHModular/include/win32/windows.h:2748:17: error: expected ';' after top level declarator
unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 Number);
^
;
WindowsHModular/include/win32/windows.h:2748:60: error: expected ')'
unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 Number);
^
WindowsHModular/include/win32/windows.h:2748:42: note: to match this '('
unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 Number);
^
WindowsHModular/include/win32/windows.h:2748:26: error: a type specifier is required for all declarations
unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64 Number);
^
WindowsHModular/include/win32/windows.h:2752:10: error: redefinition of '__int64' as different kind of symbol
unsigned __int64 _rotl64(unsigned __int64 value, int shift);
^
WindowsHModular/include/win32/windows.h:201:16: note: previous definition is here
typedef signed __int64 INT64;
^
WindowsHModular/include/win32/windows.h:2752:17: error: expected ';' after top level declarator
unsigned __int64 _rotl64(unsigned __int64 value, int shift);
^
;
WindowsHModular/include/win32/windows.h:2754:73: error: expected ')'
unsigned char _BitScanForward64(unsigned long * Index, unsigned __int64 Mask);
WindowsHModular/include/win32/windows.h:3586:1: error: unknown type name '__forceinline'
FORCEINLINE BOOL
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a M1 machine & it's not possible to build the project ...
I didn't rely on the pre-canned
MAKEFILE
in test directory (since that simply didn't work at all) & instead, I created a very simpleCMakeLists.txt
config:& in the
main.c
file, I only included thewin32/windows.h
header.But the project fails to build running the command
cmake --build .
with error:fatal error: too many errors emitted, stopping now [-ferror-limit=]
I'll share a list of the errors. (Most of them, I'm familiar with & know a solution for ... they are simply APIs found only on windows & not on other platforms.)
My entire intention of using
WindowsHModular
was to build a windows-project which relied onWindows.h
header in the code ... So I figured this project would fix the absence of the windows headers ...The text was updated successfully, but these errors were encountered: