Skip to content

Instantly share code, notes, and snippets.

@michaelsbradleyjr
Created June 23, 2020 22:02
Show Gist options
  • Save michaelsbradleyjr/16d6ac4eb2f6f7960621154d60ca7254 to your computer and use it in GitHub Desktop.
Save michaelsbradleyjr/16d6ac4eb2f6f7960621154d60ca7254 to your computer and use it in GitHub Desktop.
In file included from nimcache/debug/nim_status_client/stdlib_system.nim.c:9:0:
nimcache/debug/nim_status_client/stdlib_system.nim.c:769:17: error: conflicting types for 'GetCurrentThreadId'
N_STDCALL(NI32, GetCurrentThreadId)(void);
^
C:/Users/michael/repos/nim-status-client/vendor/nimbus-build-system/vendor/Nim/lib/nimbase.h:173:54: note: in definition of macro 'N_STDCALL'
# define N_STDCALL(rettype, name) rettype __stdcall name
^~~~
In file included from C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/winbase.h:29:0,
from C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/windows.h:70,
from nimcache/debug/nim_status_client/stdlib_system.nim.c:10:
C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/processthreadsapi.h:158:27: note: previous declaration of 'GetCurrentThreadId' was here
WINBASEAPI DWORD WINAPI GetCurrentThreadId (VOID);
^~~~~~~~~~~~~~~~~~
In file included from nimcache/debug/nim_status_client/stdlib_system.nim.c:9:0:
nimcache/debug/nim_status_client/stdlib_system.nim.c:783:15: error: conflicting types for 'CreateThread'
N_STDCALL(NI, CreateThread)(void* lpThreadAttributes, NI32 dwStackSize, tyProc__ah5wcFv3UG20t2vgXBy0Fg lpStartAddress, void* lpParameter, NI32 dwCreationFlags, NI32* lpThreadId);
^
C:/Users/michael/repos/nim-status-client/vendor/nimbus-build-system/vendor/Nim/lib/nimbase.h:173:54: note: in definition of macro 'N_STDCALL'
# define N_STDCALL(rettype, name) rettype __stdcall name
^~~~
In file included from C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/winbase.h:29:0,
from C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/windows.h:70,
from nimcache/debug/nim_status_client/stdlib_system.nim.c:10:
C:/Qt/Tools/mingw730_64/x86_64-w64-mingw32/include/processthreadsapi.h:163:28: note: previous declaration of 'CreateThread' was here
WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment