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

Author Topic: Audio module, linker errors while static linking.  (Read 328 times)

0 Members and 1 Guest are viewing this topic.

Whittler

  • Newbie
  • *
  • Posts: 4
    • View Profile
Audio module, linker errors while static linking.
« on: June 29, 2019, 02:32:59 am »
Hi ;)
I linked SFML statically today and wanted to check if everything's okay. I thought that it's great but tested audio module in the end. It turned out that in Debug mode it doesn't work, even though in Release it's totally okay.
I linked all needed libraries - flac.lib, ogg.lib, openal32.lib, sfml-system-s-d.lib, vorbis.lib, vorbisfile.lib and vorbisenc.lib.

Here are a few of linker errors:
https://cdn1.imggmi.com/uploads/2019/6/29/ca5ba6a76e42d8d3cbb644b8eec3db93-full.jpg

G.

  • Hero Member
  • *****
  • Posts: 1392
    • View Profile
Re: Audio module, linker errors while static linking.
« Reply #1 on: June 29, 2019, 07:44:07 am »
winmm.lib is a dependency of sfml-system

Whittler

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Audio module, linker errors while static linking.
« Reply #2 on: June 29, 2019, 03:22:19 pm »
Yee, I know. I just mentioned these from Audio module. These are the ones I've got:
sfml-system-s-d.lib
sfml-audio-s-d.lib
sfml-graphics-s-d.lib
sfml-window-s-d.lib
opengl32.lib
freetype.lib
winmm.lib
gdi32.lib
flac.lib
ogg.lib
vorbis.lib
vorbisenc.lib
vorbisfile.lib

FRex

  • Hero Member
  • *****
  • Posts: 1842
    • View Profile
    • My GitHub Page
    • Email
Re: Audio module, linker errors while static linking.
« Reply #3 on: June 30, 2019, 01:44:55 pm »
The missing functions are OpenAL ones. In first post you say you linked OpenAL but in your list in the second post it's missing. Can you double check that?
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

Whittler

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Audio module, linker errors while static linking.
« Reply #4 on: July 05, 2019, 11:11:07 pm »
You may be right :o sorry for being gone but I am on the Holidays right now so I can't even check my dependencies but I hope that is the case and I'll make it work. I'll reply as soon as I'm home.

EDIT: Yea - that was the case. I must have been really tired while checking the list. :/ Anyway it worked after added openal32.lib. Sorry for problem.
« Last Edit: July 11, 2019, 01:25:48 am by Whittler »