Hello there, first time posting an issue here
I'm using gcc tdm 5.1.0(code::blocks 17.12) using SFML 2.4.2
sf::Music music;
// Load from File and Print an error message
if (!music.openFromFile("040.wav")){
std::cout << "this sh*t failed to load" << std::endl;
}
music.play();
while buliding it gives me this weird error
||=== Build: Debug in old_project (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
undefined reference to `_imp___ZN2sf5MusicC1Ev'|
undefined reference to `_imp___ZN2sf5Music12openFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE'|
undefined reference to `_imp___ZN2sf11SoundStream4playEv'|
undefined reference to `_imp___ZN2sf5MusicD1Ev'|
undefined reference to `_imp___ZN2sf5MusicD1Ev'|
||error: ld returned 1 exit status|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 4 second(s)) ===|
seraching it gives me an issue of linking but all my linkings are correct
and so as version numbers match.
I tried loading pictures on the window and fonts, they work fine.
but it doesn't work on audio and music. anyone knows what's going on?