Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

how to fix size of array '_dummy_array214' is negative error?

Open shrikantvaishnav opened this issue 1 year ago • 1 comments

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.

Nuklear

shrikantvaishnav avatar Jun 29 '24 10:06 shrikantvaishnav

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

PROP65 avatar Aug 14 '24 07:08 PROP65