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....
Hello
Welcome to my blog. I have probably started around 10 blogs about programming during my time programming. None of these were of any interest to anyone, since I had nothing interesting to say, since I knew almost nothing and I never did anything that was new in any way. This might still be true, but after 10 years of doing this I wanted to atleast try to pay back the amount of times I managed to fix or do something specific only because someone else, way more advanced than me, had already figured it out and posted simple instructions for people like me to follow....