Solved how to use libs in programs

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.
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

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?
 
Back
Top