Ok.. so either if I use the latest beta of OpenAL or the latest stable build I get these unresolved externals as linking errors:
alutLoadWAVFile
alutUnLoadWAVFile
alutExit
I use Borland C++ Builder 6.
I've used the coff2omf tool for all libaries that were in the SDK and link against them:
#pragma comment(lib, "BOR_OpenAL32.lib")
#pragma comment(lib, "BOR_ALut.lib")
It does link, because when I leave it out more errors appear.
If it matters, here is the code I use to load the wav file.
It's quite straight from the openAL demo.
That demo won't compile for me too.
// Variables to load into.
ALenum format;
ALsizei size;
ALvoid* data;
ALsizei freq;
ALboolean loop;
// Load wav data into buffers.
alGenBuffers(NUM_BUFFERS, Buffers);
if (alGetError() != AL_NO_ERROR)
return AL_FALSE;
alutLoadWAVFile("my relative path is here", &format, &data, &size, &freq, &loop);
alBufferData(Buffers[BATTLE], format, data, size, freq);
alutUnloadWAV(format, data, size, freq);
Did anyone else have the same error, and fixed it?
If so how?
Thank you for your help.
[Edited by - Myth000 on August 18, 2005 9:14:09 AM]