This code works right:
#include <SFML/Audio.hpp>
int main()
{
return 0;
}
And this one...
#include <SFML/Audio.hpp>
sf::Sound sound; /// <--- Note the change!
int main()
{
return 0;
}
returns a value of -2147418113 instead of 0.
- This happens when I insert any audio variable (would it be buffer, sound or music).
- It doesn't happen when I insert any other variable of other SFML module.
- Despite the wrong return value of main function sounds and music play correctly.
- Windows 7 Ultimate, Code::Blocks 12.11 IDE, release configuration, GCC, no optimization flags.
Any ideas why is this happening?