-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Description
Hi,
I am working on creating Nuklear bindings for xBase family languages. During compilation in MSYS2, I encountered the following errors:
nuklear.h:301:61: error: size of array '_dummy_array443' is negative
301 | #define NK_STATIC_ASSERT(exp) typedef char NK_UNIQUE_NAME(_dummy_array)[(exp)?1:-1]
nuklear.h:443:1: note: in expansion of macro 'NK_STATIC_ASSERT'
443 | NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
nuklear.h:444:1: note: in expansion of macro 'NK_STATIC_ASSERT'
444 | NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*));
The only way to bypass this issue and successfully compile the library and example was to comment out the following lines:
// NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
// NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*));
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?
Metadata
Metadata
Assignees
Labels
No labels