[Openal] error when compiling project with mingw gcc 4.4
Chris Robinson
chris.kcat at gmail.com
Mon May 18 23:25:09 PDT 2009
On Monday 18 May 2009 3:25:57 pm Roger D Vargas wrote:
> I installed gcc 4.4 for testing, I have been using version 3 bundled
> with Code::blocks and everything was fine. But with gcc 4.4 I get this
> error:
> .\mingw-deps\include\AL\alc.h|187|error: '<anonymous>' has incomplete type|
> ..\mingw-deps\include\AL\alc.h|187|error: invalid use of 'ALCvoid'|
>
> The line is this:
> ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid );
> I cant remember exactly what OpenAL version Im using, I just know it is
> a bit old. Any Idea about how to solve this problem?
Change the (ALCvoid) to (void). The former is invalid for a parameter list in
C++.
More information about the Openal
mailing list