This is my first post.
I need to manipulate audios for my project so I decided to use libsnfile.
I already installed it but when I try to compile any .c program with gcc somefile.c
or gcc `pkg-config sndfile` somefile.c
it gives me "undefined" error
/tmp/ccGTKZdy.o: En la función `convert_to_text':
sndfile-to-text.c:(.text+0x193): referencia a `sf_readf_float' sin definir
/tmp/ccGTKZdy.o: En la función `main':
sndfile-to-text.c:(.text+0x37a): referencia a `sf_open' sin definir
sndfile-to-text.c:(.text+0x3a7): referencia a `sf_strerror' sin definir
sndfile-to-text.c:(.text+0x3e1): referencia a `sf_strerror' sin definir
sndfile-to-text.c:(.text+0x45f): referencia a `sf_close' sin definir
Any "sf_..." function is not defined. I've read that i may have to link to the library but idk how. Help.