[Openal] I don't understand why my code wont compile

Margin Marh marginproduction at gmail.com
Wed Mar 11 18:11:56 PDT 2009


After reading lots of Openal documents and searching the web i tough i had
it down and went and write a little code to just play a normal .wav file.
But aparently my code has some bugs i dont see.At first i used Openal with
the combination of Alure, so at first i added the OpenAL32.lib and
EFX-Util.lib then i added all the includes.
The next step i took is to write the code, the code is located here
http://pastebin.com/m2400889c



and the error i am getting is this :

> 1>Main.obj : warning LNK4248: unresolved typeref token (01000019) for
> 'ALCcontext_struct'; image may not run
> 1>Main.obj : warning LNK4248: unresolved typeref token (0100001B) for
> 'ALCdevice_struct'; image may not run
> 1>Main.obj : error LNK2028: unresolved token (0A000264) "extern "C" char
> __cdecl alureShutdownDevice(void)" (?alureShutdownDevice@@$$J0YADXZ)
> referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
> 1>Main.obj : error LNK2028: unresolved token (0A000285) "extern "C"
> unsigned int __cdecl alureCreateBufferFromFile(char const *)"
> (?alureCreateBufferFromFile@@$$J0YAIPBD at Z) referenced in function "int
> __cdecl main(void)" (?main@@$$HYAHXZ)
> 1>Main.obj : error LNK2019: unresolved external symbol "extern "C" char
> __cdecl alureShutdownDevice(void)" (?alureShutdownDevice@@$$J0YADXZ)
> referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
> 1>Main.obj : error LNK2019: unresolved external symbol "extern "C" unsigned
> int __cdecl alureCreateBufferFromFile(char const *)"
> (?alureCreateBufferFromFile@@$$J0YAIPBD at Z) referenced in function "int
> __cdecl main(void)" (?main@@$$HYAHXZ)
> 1>C:\Work\Engines\Complete_OpenAL(WIN_32)\Complete OpenAL(WIN
> 32)_sample\Debug\Complete OpenAL(WIN 32)_sample.exe : fatal error LNK1120: 4
> unresolved externals




I dont understand whats the problem because i made the device,the context
and all the other openal basic requirements but i still get errors.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090311/1c2caa14/attachment.html


More information about the Openal mailing list