1 From 21524ae2a950c29edb87f78b8179027d43fa8916 Mon Sep 17 00:00:00 2001
2 From: W. Trevor King <wking@drexel.edu>
3 Date: Sat, 10 Mar 2012 13:50:42 -0500
4 Subject: [PATCH 4/4] Include aubio.h and config.h in examples/sndfileio.c.
9 /bin/sh ../libtool --tag=CC --mode=link gcc -DAUBIO_PREFIX=\"/usr/local\" -DP\
10 ACKAGE=\"aubio\" -I../src -Wall -Wextra -g -O2 -L../src -laubio -lm -o a\
11 ubioonset aubioonset.o utils.o jackio.o sndfileio.o -lsndfile -lpthread -lm
12 libtool: link: gcc -DAUBIO_PREFIX=\"/usr/local\" -DPACKAGE=\"aubio\" -I../src -\
13 Wall -Wextra -g -O2 -o .libs/aubioonset aubioonset.o sndfileio.o jackio.o utils\
14 .o -L../src /home/wking/src/aubio/src/.libs/libaubio.so /usr/lib/libfftw3f.so \
15 /usr/lib/libsamplerate.so /usr/lib/libsndfile.so -lFLAC -lvorbisenc -lvorbis -l\
17 utils.o: In function `examples_common_init':
18 /tmp/aubio/examples/utils.c:218: undefined reference to `new_aubio_sndfile_ro'
21 when you have sndfile support, because `utils.o` was (correctly)
22 looking for the sndfile support that `sndfileio.o` was (incorrectly)
25 I'm not sure that `aubio.h` needs to be included, but it was in
26 `examples/jackio.c`, which I checked for inspiration, and including it
27 seemed like a good idea ;). It certainly shouldn't hurt to include it.
29 examples/sndfileio.c | 3 +++
30 1 files changed, 3 insertions(+), 0 deletions(-)
32 diff --git a/examples/sndfileio.c b/examples/sndfileio.c
33 index 808553b..9b01d95 100644
34 --- a/examples/sndfileio.c
35 +++ b/examples/sndfileio.c