error when compiling project with mingw gcc 4.4

View: New views
2 Messages — Rating Filter:   Alert me  

error when compiling project with mingw gcc 4.4

by Roger D Vargas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

--
Roger D. Vargas
Using Gentoo Linux 2008.0, Ogre 1.6.2, fglrx
Powered by Celeron D 2.8 Ghz, 2Gb RAM, Radeon HD4770
Currently working on: The Ark physics system
http://dsgp.blogspot.com

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: error when compiling project with mingw gcc 4.4

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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