Nuklear DLL and Wrapper
- Posted by Icy_Viking 3 months ago
- 370 views
Hi all,
Just a few minutes ago, I was able to successfully build and compile nuklear into a DLL. I even checked and the functions show up in DLL Export viewer program. Now I can begin working on a wrapper in Euphoria for it.
[https://github.com/Immediate-Mode-UI/Nuklear] Nuklear UI
//C Code #define NK_IMPLEMENTATION //needed to build correctly. #include "nuklear.h" //current header file as of May 21st, 2024. int main() { return 0; } //I added the main function() so it would compile/build correctly.
Commands to compile and build DLL
gcc -c nuklear.c gcc -shared -o nuklear.dll nuklear.o
It wasn't as hard as I thought it'd be. It was actually pretty simple after I found a tutorial. [https://cygwin.com/cygwin-ug-net/dll.html]
I have GCC for Windows installed. I'll post an update or new thread when I have a working wrapper, hopefully very soon.