I'm using CodeLite. I am using "SFML 2.3.2 GCC 4.8.1 TDM (SJLJ) - 64-bit" from the download page. My library search path is "C:/SFML-2.3.1/lib", and SFML-2.3.1 is on my C drive. My compiler is MiniGW(TDM GCC 32). The include path is "C:/SFML-2.3.1/include". Precursors are SFML_STATIC. Basically, I set it up like the tutorial at:
http://en.sfml-dev.org/forums/index.php?topic=18820.0The libraries in the linker setting looks like this:
sfml-graphics
sfml-window
sfml-audio
sfml-network
sfml-systemMy code looks like this:
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
using namespace std;
int sftest()
{
sf::Music music;
if (!music.openFromFile("research.ogg"))
{
//okkkkk
}
music.setPosition(0, 1, 10); // change its 3D position
music.setPitch(2); // increase the pitch
music.setVolume(50); // reduce the volume
music.setLoop(true); // make it loop
music.play();
return 0;
}
sflab()
{
system("cls");
cout << "Welcome to the SFML Lab." << endl;
sftest();
return 0;
}
My log is here:
http://pastebin.com/DENYQqu1'research.ogg' is in the Debug folder of the Codelite project.