On Fri, 16 Jan 2004, Rene Rebe wrote:

> Let's link a normal object and a shared obeject of the ALSAHelper:
> 
> [EMAIL PROTECTED]:~/develop/trunk/lowlevel/src$ g++ -g -Wall -I. -I../include
> -I../../dam/include -I../../utility/include -c -o ALSAHelper.o
> ALSAHelper.cc

> [EMAIL PROTECTED]:~/develop/trunk/lowlevel/src$ g++ --shared -g -Wall -I.
> -I../include -I../../dam/include -I../../utility/include -o
> ALSAHelper.so ALSAHelper.cc

I tried that and it seems that you MUST link also this shared module 
against the asound library:

g++ --shared -g -Wall -I. -I../include -I../../dam/include
-I../../utility/include -lasound -o ALSAHelper.so ALSAHelper.cc
                        ^^^^^^^^

Otherwise the versioned symbol are not applied. Here is the correct nm 
output:

[EMAIL PROTECTED]:~/src/1/svn.rocklinux-consulting.de/gsmp/trunk/lowlevel/src> 
nm ALSAHelper.so  | grep snd_pcm_hw_params_get_channels_max
         U snd_pcm_hw_params_get_channels_max@@ALSA_0.9.0rc4

                                        Have fun,
                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to