Using a Single Header C Library in Zig
I tried using raygui.h in Zig but ran into multiple build issues. The key was something that was discussed in multiple Zig discussions and issues. Currently, you need to wrap the .h file in a .c file like this. I call this raygui_impl.c like others suggested in the repo for Zig. There is discussion about this in here. #define RAYGUI_IMPLEMENTATION #include "raygui.h" Then, in my case the header file in declared as a dependency alongside raylib in my build....