From: Linux Coder Subject: Re: Calls from a custom dynamic shared library call the wrong version of alsa functions in libasound Date: Thu, 11 Aug 2005 08:53:48 -0400 Message-ID: <42FB4A5C.8040107@thehoytfamily.com> References: <42FAB657.2070307@thehoytfamily.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jaroslav Kysela Cc: Alsa Developers List-Id: alsa-devel@alsa-project.org Thank you. It works. Jaroslav Kysela wrote: >On Wed, 10 Aug 2005, Linux Coder wrote: > > > >>g++ -fPIC -gstabs+ -O0 -Wall alibtest.cpp >>g++ -shared -Wl,-soname,libalibtest.so.1 -o libalibtest.so.1.0.1 alibtest.o >>-lc >> >> > >Try add -lasound here, otherwise the linker won't add the necessary >versions to external symbols. > > Jaroslav > >----- >Jaroslav Kysela >Linux Kernel Sound Maintainer >ALSA Project, SUSE Labs > > > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf