Jump to content
  • Advertisement
Sign in to follow this  
Moriquendi

How to add OpenAL in Visual Studio 2008

This topic is 3256 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey. I'm trying to add OpenAL to my project. This is what I've done: -I copied code from this tutorial : http://www.edenwaith.com/products/pige/tutorials/openal.php -I added al, alc, alut, aluttypes, altypes .H to Visual studio->VC->include->AL -I I added alut.lib, openal32.lib to Visual studio->VC->lib -I added alut.lib and openal32.lib in project options (Linker->input) Now, I receive this errors:
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/altypes.h(8) : error C2371: 'ALbyte' : redefinition; different basic types
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(48) : see declaration of 'ALbyte'
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/altypes.h(70) : warning C4005: 'AL_SOURCE_TYPE' : macro redefinition
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(228) : see previous definition of 'AL_SOURCE_TYPE'
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/altypes.h(73) : warning C4005: 'AL_SOURCE_RELATIVE' : macro redefinition
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(95) : see previous definition of 'AL_SOURCE_RELATIVE'
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/altypes.h(129) : warning C4005: 'AL_STREAMING' : macro redefinition
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(230) : see previous definition of 'AL_STREAMING'
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/alut.h(8) : warning C4005: 'ALAPI' : macro redefinition
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(34) : see previous definition of 'ALAPI'
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/alut.h(9) : warning C4005: 'ALAPIENTRY' : macro redefinition
1>        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\AL/al.h(35) : see previous definition of 'ALAPIENTRY'
1>.\gra- opengl.cpp(21) : error C2146: syntax error : missing ';' before identifier 'listenerOri'
1>.\gra- opengl.cpp(21) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\gra- opengl.cpp(21) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\gra- opengl.cpp(26) : error C2146: syntax error : missing ';' before identifier 'buffer'
1>.\gra- opengl.cpp(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\gra- opengl.cpp(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\gra- opengl.cpp(27) : error C2146: syntax error : missing ';' before identifier 'source'
1>.\gra- opengl.cpp(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\gra- opengl.cpp(27) : error C2086: 'int Aluint' : redefinition
1>        .\gra- opengl.cpp(26) : see declaration of 'Aluint'
1>.\gra- opengl.cpp(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I don't know what should I do... [Edited by - Moriquendi on July 23, 2009 9:47:09 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!