aubio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linking problems
- To: aubio@piem.org
- Subject: linking problems
- From: "Aylon Eduard" <eduard.aylon@gmail.com>
- Date: Wed, 8 Mar 2006 02:13:29 +0100
- Cc: eduard.aylon@gmail.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=D/JrMkIVFW6uCRvCLUwC8ExtdC+Tau8059vieAx1yWD76DgG5g483B7wtwX7Gu/doRKTMQEkA5YfvUZ2S53sgvOGbMQCje2SkP4BqW+2gLcEGwlGYeYFuzGyXpPIB8fNvcGESOHRooBojE1teZJBGpM/7TBA2/eaq0f/o1pP6jQ=
Hello there,
I have tried to subscribe to the list by emailing to aubio-subscribe@piem.org but I got a Failed Mail delivery reply. So I have decided to send an email directly to the list to get some help.
I am trying to use the aubio onsetdetection capabilities, but some how it fails to link to sndfile when compiling. I get undefined references to the functions which use sndfile such as new_aubio_sndfile_ro, aubio_sndfile_samplerate, et cetera.
Should I specify any flags when configuring/compiling aubio?
For instance if I try to compile the following simple example:
#include <aubio/aubio.h>
#include <aubio/sndfileio.h>
int main( int argc, char** argv )
{
aubio_sndfile_t *foo = new_aubio_sndfile_ro( argv[1] );
return 1;
}
with g++ -laubio -lsndfile foo.cxx -o a.out
I get the following:
/tmp/cccTPq92.o: In function `main':
foo.cxx:(.text+0x2c): undefined reference to `new_aubio_sndfile_ro'
collect2: ld returned 1 exit status
Should I link against other libraries as well?
I am not that experience programmer, so my appologises before hand if I am asking something very obvious.
Any help would be much appreciated.
Thanks,
eduard
- Follow-Ups:
- Re: linking problems
- From: Paul Brossier <piem@altern.org>
- Re: linking problems
- Prev by Date: Re: Aubio on Windows
- Next by Date: Re: linking problems
- Previous by thread: Re: Aubio on Windows
- Next by thread: Re: linking problems
- Index(es):