icculus/mojoAL

Errors when building LOVE Engine 11.5

absolutelynothinghere opened this issue · 0 comments

While compiling LOVE Engine 11.5 with mojoAL I got the following errors:

In file included from modules/audio/openal/Audio.cpp:21:
In file included from modules/audio/openal/Audio.h:38:
In file included from modules/audio/openal/Source.h:32:
In file included from modules/audio/openal/Filter.h:37:
/usr/include/AL/alc.h:234:36: error: expected ')'
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                                   ^
/usr/include/AL/alc.h:234:23: note: to match this '('
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                      ^
/usr/include/AL/alc.h:235:36: error: expected ')'
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                                   ^
/usr/include/AL/alc.h:235:23: note: to match this '('
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                      ^
/usr/include/AL/alc.h:235:24: error: typedef redefinition with different types ('void (ALCcontext *, const ALCchar *)' (aka 'void (ALCcontext_struct *, const char *)') vs 'void (ALCdevice *, const ALCchar *)' (aka 'void (ALCdevice_struct *, const char *)'))
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                       ^
/usr/include/AL/alc.h:234:24: note: previous definition is here
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                       ^
3 errors generated.

I'm using Zig CC/C++ (Clang wrapper) as my compiler.