Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The 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

Closed by  Jan de Groot (JGC)
Wednesday, 30 May 2007, 12:52 GMT
Reason for closing:  Fixed
Comment by Orivej Desh (George_K) - Saturday, 26 May 2007, 05:26 GMT
How to test:
Compile test.cpp:

#include <AL/alc.h>

with "g++ -c test.cpp"

Loading...