From mboxrd@z Thu Jan 1 00:00:00 1970 From: "haoshun" Subject: Problems in writing test apps Date: Thu, 3 Apr 2008 16:59:33 +0800 Message-ID: <200804031659332034329@amoi.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from amoi.com.cn (unknown [202.101.103.189]) by alsa0.perex.cz (Postfix) with SMTP id 256411037F2 for ; Thu, 3 Apr 2008 10:52:43 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel List-Id: alsa-devel@alsa-project.org Hi: sorry,forget to add the subject right now... I'm confused by a problem when i modify a test application "alsa-lib-1.0.13/test/control.c". I wanna use the structure "snd_ctl_elem_value_t",but when i write like this: snd_ctl_elem_value_t aaa; there will be an error: storage size of 'aaa' isn't known while snd_ctl_elem_value_t *aaa; makes no errors. But i can't change it directly such as: aaa->id=test_id ; //test_id is defined before cause it will bring an error: dereferencing pointer to incomplete type I think i should use the function like "snd_ctl_elem_info_set_id",but i just want to know why,i don't think it disobeys the C syntax.Is there something different in the ALSA making procedure?or Makefile? haoshun 2008-04-03