Re: Sokol Wrapper Build Issue

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...

I came across the "sokol" libraries and I think they'd be neat to use with Euphoria.

Neat! I will definitely dig into this further. I love little libraries like these.

Icy_Viking said...

However I am having trouble building 'sokol_app' It keeps coming up with these errors when I try to build it under mingw/gcc.

sokol app file: https://github.com/floooh/sokol/blob/master/sokol_app.h

Using OpenEuphoria 4.1.0 Beta 2 Windows 11 Pro

Errors: https://ibb.co/whDc3MbK

These are all part of the Windows GDI library:

You need to tell GCC to link with that library when making your DLL, like this:

gcc -shared -o sokol_app.dll sokol_app.o -lgdi32 

That being said, I'm not sure the sokol_app library is going to work this way. It wants to call a function named sokol_main within your C code, and you can't have a "main" function in a DLL. I can dig into it more to see how it implements this and look for a work-around.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu