RobLoach / raylib-nuklear

Nuklear immediate mode GUI for raylib
https://robloach.github.io/raylib-nuklear/
zlib License
151 stars 22 forks source link

Static functions undefined #75

Closed DDexxeDD closed 4 months ago

DDexxeDD commented 4 months ago

NK_LIB defines as static because of NK_SINGLE_FILE at the start of nuklear.h. The definitions of nk_raylib_malloc and nk_raylib_mfree are inside the RAYLIB_NUKLEAR_IMPLEMENTATION define. Because of that they will not be defined in any file that includes raylib-nuklear.h but does not implement it.

RobLoach commented 4 months ago

Mind adding their declarations to the top of raylib-nuklear? That should fix it up. Thanks#

DDexxeDD commented 4 months ago

Just changing their declarations to NK_API worked for me, I dont know if thats a good fix though. Do they need to be NK_LIB?