Subject: Re: [linux-audio-dev] Compiling with libsndfile
From: Erik de Castro Lopo (erikd-lad_AT_mega-nerd.com)
Date: Tue Apr 08 2003 - 04:18:30 EDT
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
This archive was generated by hypermail 2b28 : Tue Apr 08 2003 - 04:21:13 EDT