From: Takashi Iwai Subject: Re: hw_params from shared library problem Date: Tue, 27 Jun 2006 19:16:47 +0200 Message-ID: References: <44A04D7B.1070002@gmx.net> <44A0DAC0.5050404@purplelabs.com> <44A16629.4050001@gmx.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44A16629.4050001@gmx.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Gerald Grabner Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 27 Jun 2006 19:08:57 +0200, Gerald Grabner wrote: > > Benoit Fouet wrote: > > >> Compilation: > >> gcc -c -fPIC object.c > >> gcc -shared -fPIC -o libTest.so object.o > >> gcc -o main main.c -L. -lTest -lasound > >> > >> > > and what if you try to link your dynamic library with asound (actually, > > this is the really needer of the link, not your test program) ? I think > > this could help... > > > > gcc -shared -fPIC -o libTest.so object.o -lasound > > Hey, thanks a lot, that did the trick! > > Interestingly, other libraries I am using do not require to be specified > when building the shared library. It's most likely due to versioned symbols used in alsa-lib. Takashi Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642