[linux-audio-dev] Compiling with libsndfile

Erik de Castro Lopo erikd-lad at mega-nerd.com
Tue Apr 8 04:29:01 UTC 2003


On 08 Apr 2003 15:51:11 +1000
Rohan Parkes <rparkes at email.com> wrote:

> 	
> gcc `sndfile-config --libs` file1.o file2.o -o program.

Thats for the old version. Nowadays (in fact for the last 15 months) you 
do:

     gcc `pkg-config --libs sndfile` file1.o file2.o -o program

Similarly, for compiling a C file to an object:

     gcc `pkg-config --cflags sndfile` -c file.c

pkg-config is now the standard way of doing things like this.

Erik (the author :-))
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"It's far too easy to make fun of Microsoft products, but it takes a 
real man to make them work, and a god to make them do anything useful"
  -- Anonymous



More information about the Linux-audio-dev mailing list