-
Notifications
You must be signed in to change notification settings - Fork 586
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
Issue with NK_STATIC_ASSERT during compilation in MSYS2 #747
Comments
The solution is not to disable static asserts, but to fix what's not working on this platform :) |
As there is no existing compilation example for MSYS2, could you show how you invoke the compiler? I made a quick test on |
Indeed a negative size array is illegal in C, and that's the purpose of static assertions. That's why I ask you how you compile, which compiler is used and with which switches, to reproduce your error and find out why those sanity checks don't pass. I got the error, now I need the command line triggering this error. |
Actually
It's not making itmore flexible, but less robust and candidate to segfaults. The solution is more to understand why in your MSYS2 implementation, you fall on this case, because that should not occur. Once the origin of the problem is detected, we can add the various I just need the compilation command line (and/or Makefile), as well as your environment like Windows version to see if there is some peculiar context. |
Hi,
I am working on creating Nuklear bindings for xBase family languages. During compilation in MSYS2, I encountered the following errors:
The only way to bypass this issue and successfully compile the library and example was to comment out the following lines:
This allowed me to proceed with testing, but I understand that this is not a proper solution.
The problem occurs only in the MSYS2 environment – everything works correctly under Linux.
What can be done to address this issue?
The text was updated successfully, but these errors were encountered: