GCC 4.2 and LLVM Doesn't like OpenAL

Member
Posts: 227
Joined: 2008.08
Post: #1
When compiling my engine with GCC 4.2 I get this error:

Code:
/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:182: error: '<anonymous>' has incomplete type

/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:182: error: invalid use of 'ALCvoid'
Isn't alc.h a system file, why would it not compile with GCC4.2?
The offending line:
Code:
ALC_API ALCcontext *    ALC_APIENTRY alcGetCurrentContext( ALCvoid );

Note: It works perfectly with GCC 4.0.
Quote this message in a reply
Member
Posts: 227
Joined: 2008.08
Post: #2
Any help? ::BUMP::
Quote this message in a reply
Nibbie
Posts: 1
Joined: 2009.05
Post: #3
I had this problem too, the only solution I found was to manually edit the header and remove ALCvoid and ALvoid where appropriate. Annoyed

Alternatively you could copy the headers into your project if you don't fee comfortable modifying the system headers. It should still link fine. Rasp
Quote this message in a reply
Post Reply