I'm using C::B, sfml 2.3 GCC 4.7.1 TDM (SJLJ) - 32-bit, GNU GCC Compiler 4.7.1. When i try to compile this code:
#include <SFML/Audio.hpp>
int main()
{
sf::Sound sound;
return 0;
}
It gives me these errors:
||=== Build: Debug in Mars(compiler: GNU GCC Compiler) ===|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_packet_blocksize'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_packet_blocksize'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_packet_blocksize'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_trackonly'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
D:\Downloads\Programs\GAMES\DEVELOPMENT\SFML-2.3\lib\libvorbisfile.a(vorbisfile.o):vorbisfile.c|| undefined reference to `vorbis_synthesis_halfrate_p'|
||=== Build failed: 18 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
I don't know what is the cause of this.
Sorry for bad english.
Please help.
Yes I'm linking statically.
My configuration for debug is:
sfml-graphics-s-d
sfml-window-s-d
sfml-audio-s-d
sfml-network-s-d
sfml-system-s-d
opengl32
freetype
jpeg
winmm
gdi32
openal32
flac
vorbis
vorbisenc
vorbisfile
ogg
ws2_32