10-26-2011 04:42 PM
I understand this error to mean this function can't be located in the headers or libraries. I am using this code from wave.c:
#include <sys/asoundlib.h> .... int card = -1; int dev = 0; snd_pcm_t *pcm_handle; int rtn; rtn = snd_pcm_open_preferred (&pcm_handle,&card, &dev, SND_PCM_OPEN_CAPTURE);
The compiler is giving me:
undefined reference to `snd_pcm_open_preferred'
It has no problem with the reference to snd_pcm_t, so I know the header is being accessed.
I'm not sure what I'm doing wrong here. Any suggestions?
Solved! Go to Solution.
10-26-2011 04:43 PM - edited 10-26-2011 04:44 PM
I'm also getting the same compile error for snd_pcm_open, in fact when I try and compile wave.c I get dozens of these errors.