libsmf
libsmf copied to clipboard
How to include and build this, and is the only way to use this through installing it?
I am interested in using this library, and I first tried to import the smf.h to my program, but then it complains about functions such as smf_load() not existing:
smftest.c:(.text+0x15): undefined reference to smf_load'
`
I'm compiling with:
gcc smftest.c $(pkg-config --cflags --libs glib-2.0)
Then I read that the home page suggests to do a make install. Is this the only way to use the library? What about doing the build to some other location than:
usr/bin/mkdir: cannot create directory ‘/usr/local/lib64’: Permission denied
add $(shell pkg-config --libs --cflags smf) to your makefile CFLAGS or whatever.