Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Static linker error  (Read 3385 times)

0 Members and 1 Guest are viewing this topic.

Munvik

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Static linker error
« 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 ?
« Last Edit: March 18, 2017, 06:58:15 pm by Munvik »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Static linker error
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Munvik

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: Static linker error
« Reply #2 on: March 18, 2017, 09:02:47 pm »
Quote
You aren't linking openal32.
Can u say how should I do that ?

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Static linker error
« Reply #3 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
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Munvik

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: Static linker error
« Reply #4 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
« Last Edit: March 19, 2017, 02:07:49 am by Munvik »

 

anything