SFML community forums

Help => Audio => Topic started by: Munvik on March 18, 2017, 06:56:32 pm

Title: Static linker error
Post by: Munvik on March 18, 2017, 06:56:32 pm
Hi.
I have problem with using SFML\Audio.hpp
I am using VS 2015 and have Windows 8 64x
When i use sf::Audio liker gives me a lot of errors.
Errors:
(click to show/hide)


My linker's input:
sfml-audio-s.lib
sfml-graphics-s.lib
sfml-window-s.lib
sfml-system-s.lib
jpeg.lib
opengl32.lib   
Winmm.lib
freetype.lib

I tryed to execution example's sound.exe and it gives me an error "The program can't start because openal32.dll is missing from your computer. Try reinstalling the program to fix this problem."
I downloaded this and here is still the same problem.

Don't know how to fix those errors. May someone help me ?
Title: Static linker error
Post by: eXpl0it3r on March 18, 2017, 07:15:12 pm
You aren't linking openal32.
And you need to copy the openal DLL in the SFML bin directory next to your exe or its working directory.
Title: Re: Static linker error
Post by: Munvik on March 18, 2017, 09:02:47 pm
Quote
You aren't linking openal32.
Can u say how should I do that ?
Title: Re: Static linker error
Post by: Hapax on March 18, 2017, 09:18:45 pm
You need to add all of the dependencies for all of the modules that you use. You haven't included the dependencies for the window module or the audio module.

http://www.sfml-dev.org/tutorials/2.4/start-vc.php
Title: Re: Static linker error
Post by: Munvik on March 18, 2017, 11:05:57 pm
Ok fine, it compiles.
When I executed my code the Windows shown error "The program can't start because openal32.dll is missing from your computer. Try reinstalling the program to fix this problem."
I copyed OpenAl32.dll into folder where .exe is creating after compiling. And now the error is another - "application has not been properly started (memory adress)"

now my input is here:
(click to show/hide)

And when I comment sf::Audio all works

EDIT:
Fixed it, just replace previous download from internet openal32.dll on sfml's openal32.dll :D
Thanks for help