-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Some issues compiling on windows with MSYS2 - CLOCK_MONOTONIC undeclared in time.c 355 #527
Comments
gcc version 13.2.0 on Windows 10 with MSYS2 20240113 |
If I add -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-implicit-function-declaration -D_POSIX_MONOTONIC_CLOCK (I added the disabled warning just to find the problems faster ;)) and in time.c then I got everything compiled but unfortunately ran into another issue C:/home/sw/msys64/usr/include/sys/errno.h:18: warning: "errno" redefined I will continue my investigations |
Next thing I for the sake of building I commented out /#define _X 0100/ in ctype .h maybe it is defined somewhere else and added runtime.c the
Now I get to the final link step ... and run into some undefined references :( ---[ Concurrency Kit has installed successfully. |
Hi there,
first of all thanks for the Windows port :).
I ran into some minor and one issues I cannot resolve:
scheme/time.c:355:23: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
355 | clock_gettime(CLOCK_MONOTONIC, &now);
I guess it could be a posix issue but adding -D_POSIX_C_SOURCE=199309 doesn't work for me. Any idea ?
If you need more information pls .let me know.
... and thanks in advance.
-- Mario
The text was updated successfully, but these errors were encountered: