#How to use a fetched zig package?

1 messages · Page 1 of 1 (latest)

undone silo
#

I'm trying to do

const lib = @import("lib");

where lib is the name declared in build.zig.zon but that's not working. The fetch command also produced no folders in the root directory that I can easily access so I don't know what path to use.

ionic onyx
#

and then add it as a module to your root exe

undone silo
#

alrready a dep

ionic onyx
undone silo
#

ohhh

#

I don't have the addImport line

#

For a c lib is that before or after linking? or is it irrelevant?

ionic onyx
#

for a c dep, you have to link it

undone silo
#

Okay, I've spent the whole morning trying to set up raylib and haven't managed

#

I give up for now and will try again later