Skip to content

-std=c99 option leads to compile errors for ALSA API #3

@fietew

Description

@fietew

Hi everyone,

I am using:

  • Lubuntu 14.10
  • MATLAB R2014a
  • libasound2-dev 1.0.28-1
  • portaudio v19, January 30, 2014, SVN rev 1919
  • playrec, commit 48b4f6a
  • gcc 4.9.1

According to https://github.com/PlayrecForMatlab/playrec/blob/master/m_files/build_mex.m#L27-28
the --std=c99 option is needed for portaudio. However it causes compile errors, if the ALSA API is selected via the GUI. The errors are due to the fact, that the source code of the portaudio's ALSA API uses "typeof". This is a an extension of the C-Standard, which is not accepted by the compiler, when specifying the ISO C99 Standard (--std=c99). Removing L28 does surprisingly solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions