On Wed, 17 Mar 2004, Tim Hollingsworth wrote: > Hi > > I'm a newbie with alsa and rusty with c. I am trying to get a basic > pcm application going. I have: > > #include <alsa/asoundlib.h> > > but when I try to: > > snd_pcm_hw_params_alloca(&hwparams); > > I get: > > /tmp/ccJB6E1d.o(.text+0x18): In function `initSound': > : undefined reference to `snd_pcm_hw_params_sizeof' > /tmp/ccJB6E1d.o(.text+0x31): In function `initSound': > : undefined reference to `snd_pcm_hw_params_sizeof' > collect2: ld returned 1 exit status
gcc -lasound <your_c_file> Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel