dereferencing pointer error in app but not in lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the library, like pcm.c I can code like

const char *snd_pcm_name(snd_pcm_t pcm) {
  return pcm->name;
}

At the same time, the same code in the application causes "dereferencing pointer to incomplete type" error. Note, the compiler does not tell that there is no such field in the pcm structure. It just thinks that the name has another type. Which one? 

thank you.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux