Re: [Openal] invalid use of ‘ALvoid’
Eric Wing <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
Sounds like a C++ problem. I griped about this one here: http://playcontrol.net/ewing/jibberjabber/another_c_vs_c_incompatibil.html I think you are correct about ALvoid, but Apple fixed their headers so you shouldn't have to change their header files. It looks like you are using a non-standard OpenAL installation. Apple officially provides theirs in /System/Library/Frameworks Yours is in /Library/Frameworks. Who knows where you got that from. -Eric On 4/28/10, Iain Laird <[email protected]> wrote: > Hello all, > > I am pretty new to OpenAL and C++ so I'm going through lesson 1 (the OS X > version) on DevMaster.net but I am having some trouble getting it to compile > and I'm hoping someone can give me a few pointers. > > So a bit of detail. > > I am using OS X (snow leopard) and have tried compiling the tutorial with > g++ and via Xcode and I'm getting the following errors which look like the > compiler is having trouble with OpenAL headers: > (compiled with g++) > > In file included from main.cpp:9: > /Library/Frameworks/OpenAL. > framework/Versions/A/Headers/al.h:84: error: ‘<anonymous>’ has incomplete > type > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h:84: error: > invalid use of ‘ALvoid’ > In file included from main.cpp:10: > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alc.h:43: error: > ‘<anonymous>’ has incomplete type > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alc.h:43: error: > invalid use of ‘ALCvoid’ > In file included from main.cpp:11: > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alut.h:36: error: > ‘<anonymous>’ has incomplete type > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alut.h:36: error: > invalid use of ‘ALvoid’ > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h: In function > ‘ALboolean LoadALData()’: > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h:84: error: too > few arguments to function ‘ALenum alGetError(<type error>)’ > main.cpp:75: error: at this point in file > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h:84: error: too > few arguments to function ‘ALenum alGetError(<type error>)’ > main.cpp:91: error: at this point in file > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h:84: error: too > few arguments to function ‘ALenum alGetError(<type error>)’ > main.cpp:103: error: at this point in file > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alut.h: In function > ‘void KillALData()’: > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/alut.h:36: error: > too few arguments to function ‘ALvoid alutExit(<type error>)’ > main.cpp:136: error: at this point in file > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h: In function > ‘int main(int, char**)’: > /Library/Frameworks/OpenAL.framework/Versions/A/Headers/al.h:84: error: too > few arguments to function ‘ALenum alGetError(<type error>)’ > main.cpp:154: error: at this point in file > > I have trawled through the forums and have seen others with similar problems > and they suggested replacing all (except the first) instances of 'ALVoid' > with 'Void' I was hoping someone could confirm that's a good way to go > before I started messing around with headers. > > Any suggestions are very welcome indeed. > > Many thanks > > Iain Laird > _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal