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.


Messages - ShinAska109

Pages: [1]
2
Hello guys, I have problems when compiling statically executables using the sfml-audio module. Whenever I try to compile it I get an undefined reference to 'vorbis_*' errors during compilation. I think I have followed the instructions in the FAQ.

Anyways here my link libraries settings


Also here's the build log:

Quote
x86_64-w64-mingw32-g++.exe -Wall -DSFML_STATIC  -g  -std=c++0x   -I..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\include  -c F:\OneDrive\Programming\SFML\SFML2.3\ZeroGuardianBuild0.2\ZeroEngine\main.cpp -o obj\Debug\main.o
x86_64-w64-mingw32-g++.exe -L..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib  -o bin\Debug\ZeroEngine.exe obj\Debug\main.o    -lsfml-window-s -lsfml-graphics-s -lsfml-audio-s -lsfml-network-s -lsfml-system-s -lgdi32 -luser32 -lkernel32 -lcomctl32 -lopengl32 -lopenal32 -lwinmm -ljpeg -lfreetype -lws2_32 -lopenal32 -lflac -lvorbis -lvorbisenc -lvorbisfile -logg
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x407): undefined reference to `vorbis_packet_blocksize'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0xf12): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0xf34): undefined reference to `vorbis_synthesis'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x13b0): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x1b81): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x1ba4): undefined reference to `vorbis_synthesis'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x1f42): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x2760): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x374a): undefined reference to `vorbis_packet_blocksize'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x4c1b): undefined reference to `vorbis_packet_blocksize'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x4c6a): undefined reference to `vorbis_synthesis_trackonly'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x4ec3): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x5026): undefined reference to `vorbis_synthesis_halfrate'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x50ca): undefined reference to `vorbis_synthesis_halfrate'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x5a94): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x5c19): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x5c34): undefined reference to `vorbis_synthesis_halfrate_p'
..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o):vorbisfile.c:(.text+0x2e8a): undefined reference to `vorbis_synthesis_halfrate_p'

c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: ..\..\Library\SFML-2.3-windows-gcc-4.8.1-tdm-64-bit\SFML-2.3\lib/libvorbisfile.a(vorbisfile.o): bad reloc address 0x0 in section `.pdata'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)

I'm using the gcc 4.8.1 (64 bit) version of SFML 2.3, any ideas where I did go wrong?

Pages: [1]
anything