Comments (1)
So I asked in Zig discord about this, and this was the response.
From: tomck5836 https://discord.com/channels/605571803288698900/1036403458305163384/1229840153279725618
Normally this kind of error occurs when you're trying to import a c header which contains complex stuff like macros, or static/inline functions which zig cannot properly translate to zig
Does libagar intentionally provide zig support? If not, they can't do anything to help + you're best off deleting the issue. This is not a problem with libagar (unless they explicitly say they support zig)
your options are:
- use something else
- write your own bindings
The @cImport
stuff is just a shortcut that zig has to automatically try and import c headers. You can just write your own bindings with export fn (...), getting all the function signatures to match up.
So I guess for properly using libagar with zig I have to create zig bindings 💯
from libagar.
Related Issues (20)
- No Keyevents generated on MacOS AGAR 1.6.x HOT 2
- SG missing __APPLE__ directive in sg.h HOT 1
- core missing __MINGW32__ directive in time_render.c & vec.c HOT 1
- drv_glx unicode input HOT 1
- agartest failing to execute properly on Linux X86_64 Devuan ASCII 2.1 / NVidia 190.138 HOT 1
- Can agar work only on FB without sdl? HOT 1
- agarhello doesn't render text using sdlfb HOT 2
- Add clipboard support to SDL2 drivers
- GLX driver does not enforce window minimum size
- Segmentation fault on keyevents test. HOT 5
- Cannot run agartest or the hello.c example on Fedora Linux HOT 2
- How about provide libagar with meson WrapDB database HOT 3
- Build error under macOS HOT 1
- Build Agar on MSYS2
- Installing failing on linux HOT 5
- padding not working as expected in progress bar HOT 2
- AG_ProgressBarSetWidth does nothing HOT 1
- Pane test. Pane is not restored after having been hidden
- Submenus are decorated when using twm HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libagar.