Nuklear
Nuklear copied to clipboard
how to fix size of array '_dummy_array214' is negative error?
Hi everyone,
I'm working with codeblocks and using the Nuklear SDL Renderer example. When I compile, I'm encountering an error message that states "size of array '_dummy_array214' is negative." I've tried adding NK_Implementation before Nuklear.h as suggested in previous discussions, but the error persists.
Here's some additional context that might be helpful:
Compiler: I'm using Mingw on Windows 10.
https://github.com/Immediate-Mode-UI/Nuklear/blob/74a12afc620191616c9e9eb2e1bae60e8144a879/nuklear.h#L286-L296
_dummy_array is used for compile time asserts (NK_STATIC_ASSERT)
If _MSC_VER is defined, then 214 is the value of __COUNTER__, otherwise check for a NK_STATIC_ASSERT on line 214