[flac-dev] FLAC won't allow project to build due to assert.h

Nikos Chantziaras realnc at gmail.com
Sun May 19 12:45:04 PDT 2013


On 19/05/13 16:59, Erik de Castro Lopo wrote:
> Nikos Chantziaras wrote:
>
>> [...] adding the output of:
>>
>>     pkg-config flac --cflags
>>
>> to the compiler flags [...] will break my build with errors like:
>>
>>     error: 'assert' was not declared in this scope
>>
>> The problem is that /usr/include/FLAC has an "assert.h" header.
>> [...]
>
> First of all, this is fixed in the next release.
>
> Secondly, what I do for libsndfile with the current release is to remove
> the FLAC component of the include path provided by pkc-config and then
> include flac headers as <FLAC/headher.h>

Yeah, that works.  I didn't think this is the correct thing to do, since 
the FLAC headers might be installed somewhere else (perhaps with a 
version suffix.)  But it seems this is actually what everybody does 
anyway, so I'll go with it.  Thanks :-)



More information about the flac-dev mailing list