GCC 4.2 and LLVM Doesn't like OpenAL
When compiling my engine with GCC 4.2 I get this error:
Isn't alc.h a system file, why would it not compile with GCC4.2?
The offending line:
Note: It works perfectly with GCC 4.0.
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'The offending line:
Code:
ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid );Note: It works perfectly with GCC 4.0.
Any help? ::BUMP::
I had this problem too, the only solution I found was to manually edit the header and remove ALCvoid and ALvoid where appropriate. 
Alternatively you could copy the headers into your project if you don't fee comfortable modifying the system headers. It should still link fine.

Alternatively you could copy the headers into your project if you don't fee comfortable modifying the system headers. It should still link fine.

