Subject: Re: [ecasound] ECI C example
From: Kai Vehmanen (k_AT_eca.cx)
Date: Mon Oct 21 2002 - 01:59:58 EEST
On Mon, 21 Oct 2002, janne halttunen wrote:
> Ok. So I should've RTFM. I have to link to libecasoundc library.
> But, there's only libecasoundc.a and libecasoundc.la in /usr/local/lib
> .. How do I create shared libraries from these?
You don't/can't. The .la file is for libtool (ie. if you link your
application using libtool), while .a is the normal static library.
Anyway, you can use the following to compile&link:
gcc -o eciexample eciexample.c -lecasoundc
A fancier way is to use libecasoundc-config:
gcc `libecasoundc-config --cflags` -o eciexample eciexample.c \
`libecasoundc-config --libs`
This also takes care of the "#include <ecasoundc.h>" problem
you noticed earlier (check the output from '...-config --cflags').
-- http://www.eca.cx Audio software for Linux!
This archive was generated by hypermail 2b28 : Mon Oct 21 2002 - 01:58:57 EEST