Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#7258 - openal header is incompatible with g++
Attached to Project:
Arch Linux
Opened by Orivej Desh (George_K) - Thursday, 24 May 2007, 15:56 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 30 May 2007, 12:52 GMT
Opened by Orivej Desh (George_K) - Thursday, 24 May 2007, 15:56 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 30 May 2007, 12:52 GMT
|
DetailsThe problem is with /usr/include/AL/alc.h openal header.
In it there is typedef void construction ("typedef void ALCvoid;") and then it uses this typedef to mention that function don`t accept arguments ("ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid );") which is allowed in C but not in C++ (http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_closed.html#18). There are c++ applications which use this lib (instead of openalpp). One of possible solutions is to replace "typedef void ALCvoid;" with "#define ALCvoid void". P.S. Found link to anubis.dkuug.dk at http://www.archivum.info/comp.std.c++/2006-04/msg00202.html |
This task depends upon
Compile test.cpp:
#include <AL/alc.h>
with "g++ -c test.cpp"