« Return to Thread: error when compiling project with mingw gcc 4.4

Re: error when compiling project with mingw gcc 4.4

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View in Thread

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++.
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

 « Return to Thread: error when compiling project with mingw gcc 4.4