• Advertisement
Sign in to follow this  

Having problem with OpenAL

This topic is 2192 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

Hi there,

I am making my first steps with OpenAL. I get the following error:

1>AudioManager.obj : error LNK2019: unresolved external symbol __imp__alcOpenDevice referenced in function "public: bool __thiscall AudioManager::initializeAudio(void)" (?initializeAudio@AudioManager@@QAE_NXZ)


I have only put the following code

#include <al.h>
#include <alc.h>

.....

bool AudioManager::initializeAudio()
{
ALCdevice *dev;
ALCcontext *ctx;
struct stat statbuf;

// Create the device
dev = alcOpenDevice(NULL);
/*if(!dev)
{
return false;
}

...

return false;
}

Of course, in my VC++ directory - Library file I have included:

C:\Users\Admin\Documents\Visual Studio 2008\librairies\OpenAL 1.1 SDK\libs\Win64

And in my project, I have put in Linker - Input - Additional Dependencies:

OpenAL32.lib

But it doesn't seem to work. Any help?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
Ha never mind.

If I put the directory in VC++ directory - Library

C:\Users\Admin\Documents\Visual Studio 2008\librairies\OpenAL 1.1 SDK\libs\Win32

instead of

C:\Users\Admin\Documents\Visual Studio 2008\librairies\OpenAL 1.1 SDK\libs\Win64

It works!

Share this post


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

  • Advertisement