I'm trying John Hall's book Programming Linux Games, which recommends
using libsndfile to load sound files. Unfortunately, the API has changed
since the book as written, and I can't seem to get projects to compile
with it now. There don't appear to be any instructions on the library's
homepage about linking.
Hall just says to compile the project with the -lsndfile flag. This
doesn't seem to work now - the resulting project doesn't link the object
in. The library does seem to be correctly installed
I found a message from the library's author
http://www.eca.cx/lad/2002/Mar/0311.html
which says to link the program with
gcc `sndfile-config --libs` file1.o file2.o -o program.
I don't seem to have the sndfile-config utility, which was suppoed to
get installed along with the library.
Running ./configure created makefiles in some of the subfolders in the
installation folder. I'm mainly interested in the examples folder, but I
get errors when I try to compile them with the makefile, assuming this
is what I am supposed to do.
I'd appreciate any advice.
Rohan Parkes
Melbourne
Australia