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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sheepyhead

Pages: [1]
1
Audio / (Resolved) Issues compiling statically with the audio library
« on: March 19, 2019, 09:22:39 pm »
Hey there folks, new user of SFML here, and I love the API so far! I'm having some issues linking with the audio module, as the flac.lib provided in extlibs seems to be somewhat outdated. I'm running into the issue that is documented on stackexchange where some standard definitions seem to have changed slightly in MSVC, see https://stackoverflow.com/questions/30412951/unresolved-external-symbol-imp-fprintf-and-imp-iob-func-sdl2

So when I attempt to compile, linking the audio library, along with its dependencies I get this error:
https://i.imgur.com/UvMKgN8.png

My compile command is the following:
cl /FC /EHsc /MDd /D_ITERATOR_DEBUG_LEVEL=2 /I ..\submodules\SFML\include ..\src\main.cpp /DSFML_STATIC /link /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64" OpenGL32.lib WinMM.lib Gdi32.lib user32.lib advapi32.lib /LIBPATH:"../submodules/SFML/extlibs/libs-msvc/x64" OpenAL32.lib flac.lib vorbisfile.lib ogg.lib vorbisenc.lib vorbis.lib /LIBPATH:"../submodules/build/SFML/lib/Debug" sfml-main-d.lib sfml-system-s-d.lib sfml-window-s-d.lib sfml-graphics-s-d.lib sfml-audio-s-d.lib

Has anyone encountered this issue before? How do I get past this?

Pages: [1]