Skip to content
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

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

Open
shrikantvaishnav opened this issue Jun 29, 2024 · 1 comment
Open

Comments

@shrikantvaishnav
Copy link

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

@PROP65
Copy link
Contributor

PROP65 commented Aug 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants