aubio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linking problems
- To: Aylon Eduard <eduard.aylon@gmail.com>
- Subject: Re: linking problems
- From: Paul Brossier <piem@altern.org>
- Date: Wed, 8 Mar 2006 06:33:34 +0000
- Cc: aubio@piem.org
- In-reply-to: <d35051330603071713r2d4aa1ddw8dca317a5c24e842@mail.gmail.com>
- References: <d35051330603071713r2d4aa1ddw8dca317a5c24e842@mail.gmail.com>
- User-agent: Mutt/1.5.11+cvs20060126
Hello,
On Wed, Mar 08, 2006 at 02:13:29AM +0100, Aylon Eduard wrote:
> 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.
Ouch, sorry about that, i will try to figure out.
> 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:
>
I would include <aubio/aubioext.h>, since the function used is in
aubioext:
---
#include <aubio/aubio.h>
#include <aubio/aubioext.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
similarly, you need to link against aubioext:
g++ -laubio -laubioext -lsndfile foo.cxx -o a.out
should resolve all linking references.
> Should I link against other libraries as well?
Here sndfile is optional, since aubioext is linked against. It seems
best practice is to mention all the librairies you need.
I hope this helps.
Best, Paul
> 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
--
To unsubscribe, send mail to aubio-unsubscribe@piem.org.
- References:
- linking problems
- From: "Aylon Eduard" <eduard.aylon@gmail.com>
- linking problems
- Prev by Date: linking problems
- Next by Date: [ANN] aubio 0.3.0
- Previous by thread: linking problems
- Next by thread: [ANN] aubio 0.3.0
- Index(es):