Sign in to follow this  
Moriquendi

How to add OpenAL in Visual Studio 2008

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this