Hello,
Saw some libs, like libxo "man libxo", and a lot of others. Just want to start using them. But can't mind how to.
and here is the code itself
gist.github.com
already tried to "pkg install libxo", but the same ld errors on compile.
What should I do to include libs? Where should I find them?
Saw some libs, like libxo "man libxo", and a lot of others. Just want to start using them. But can't mind how to.
Code:
root@ihor:/home/ihor/Code # cc m.c
ld: error: undefined symbol: xo_parse_args
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
ld: error: undefined symbol: xo_open_container
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
ld: error: undefined symbol: xo_emit
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
>>> referenced 2 more times
ld: error: undefined symbol: xo_close_container
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
ld: error: undefined symbol: xo_finish
>>> referenced by m.c
>>> /tmp/m-2da830.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
root@ihor:/home/ihor/Code #
and here is the code itself

Example code to demonstrate using libxo
Example code to demonstrate using libxo. GitHub Gist: instantly share code, notes, and snippets.
already tried to "pkg install libxo", but the same ld errors on compile.
What should I do to include libs? Where should I find them?