SFML community forums

Help => Audio => Topic started by: Whittler on June 29, 2019, 02:32:59 am

Title: Audio module, linker errors while static linking.
Post by: Whittler 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
Title: Re: Audio module, linker errors while static linking.
Post by: G. on June 29, 2019, 07:44:07 am
winmm.lib is a dependency of sfml-system
Title: Re: Audio module, linker errors while static linking.
Post by: Whittler 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
Title: Re: Audio module, linker errors while static linking.
Post by: FRex 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?
Title: Re: Audio module, linker errors while static linking.
Post by: Whittler 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.