小编Del*_*ond的帖子

为什么gcc99指向毫无意义的错误,而标准的gcc却没有?

我正在通过本文学习ALSA编程,并且我尝试编译以下示例:

/*

This example opens the default PCM device, sets
some parameters, and then displays the value
of most of the hardware parameters. It does not
perform any sound playback or recording.

*/

/* Use the newer ALSA API */
#define ALSA_PCM_NEW_HW_PARAMS_API

/* All of the ALSA library API is defined
 * in this header */
#include <alsa/asoundlib.h>

int main() {
  int rc;
  snd_pcm_t *handle;
  snd_pcm_hw_params_t *params;
  unsigned int val, val2;
  int dir;
  snd_pcm_uframes_t frames;

  /* Open PCM …
Run Code Online (Sandbox Code Playgroud)

c gcc c99

2
推荐指数
1
解决办法
203
查看次数

标签 统计

c ×1

c99 ×1

gcc ×1