So I'm done my first draft of my first .c that uses zfs functions. It's my first time doing something like this, so I'm trying it a way that is probably very hacky and anyway isn't working. Maybe somebody can point me in the right direction.
I simply cloned the zfs repository, #include'ed the relevant libraries, and then when I compiled I added
What did I miss in my linking procedure?
I simply cloned the zfs repository, #include'ed the relevant libraries, and then when I compiled I added
-I $directory_with_the_zfs_repository
. One of the files in that repository is zfs/zfs-master/include/os/freebsd/spl/sys/types.h, which includes typdefs for uint_t and several other ones that are needed (which I linked with #include <sys/types.h>
). However, when I comile it with cc, I get:
Code:
error: unknown type name 'uint_t'; did you mean 'uint8_t'?
What did I miss in my linking procedure?