#Undefined symbol errors trying to link with static libraries (libnss)
1 messages · Page 1 of 1 (latest)
I tried that first but I had the same problem
could it be an issue with libnss_static.a?
Yeah I didn't expect that to fix it, it should be equivalent :)
nm will show symbols the library depends on, as well as ones it defines
The U here means "undefined"
So you need a different library that does define them
i'll run it on my output dir from nss
I copied some library files over but probably missed some
run what?
nm*
oh right
and check the symbols are defined somewhere
Yeah any static library in the output directory should probably be copied over into your deps dir
And linked to your zig program
theres a lot of static libs there