I have been attempting to get a version of ENet working so I can use it in some Zig projects. (https://github.com/zpl-c/enet for reference). I did attempt to use the main version (https://github.com/lsalzman/enet) but I ended up with similar problems.
In after I build and compile it I end up with the error of raw_enet.zig:1:1: error: expected type expression, found \'invalid token\' ■
This is, unideal. I have tried using both zig translate-c and just writing my own pub extern fns in it's own file. Both give apparently the same error. I have even tried making a tiny '.c' file that does nothing but have an include statement of the header.
What I would like is to be able to use ENet. (Also the only one that I have found that has been wrapped for zig was last updated ~3 years ago.). I would also like to understand what I am doing wrong. The move I dive into the build system the more it feels like a black box. Thank you for your time and your help.