1
General / Cannot get -lsfml-system-s to work
« on: February 04, 2013, 03:38:11 am »
First off, I am following this: http://sfml-dev.org/tutorials/1.6/start-cb.php
I downloaded Code::Blocks from here: http://www.codeblocks.org/downloads/26
Installed this: codeblocks-12.11mingw-setup.exe
I downloaded SFML from here: http://sourceforge.net/projects/sfml/?source=dlp
Full download.
I have followed the tutorial exactly, but I cannot get past the error:
I realize this is because I do not have the .dll in the same directory as my program, but that is what I am trying to avoid. I have moved the *.a files to the Code::Blocks folder and referred to it in Other linker options: as -lsfml-system-s and it does not work.
I have also tried using the Search directories options where I pointed the compiler to the SFML-1.6\include folder and then pointed the Linker to the SFML-1.6\lib folder, yet I still do not have any luck.
Any help?
This is my code:
I downloaded Code::Blocks from here: http://www.codeblocks.org/downloads/26
Installed this: codeblocks-12.11mingw-setup.exe
I downloaded SFML from here: http://sourceforge.net/projects/sfml/?source=dlp
Full download.
I have followed the tutorial exactly, but I cannot get past the error:
Code: [Select]
The program can't start because sfml-system.dll is missing from your computer. Try reinstalling the program to fix this problem.
I realize this is because I do not have the .dll in the same directory as my program, but that is what I am trying to avoid. I have moved the *.a files to the Code::Blocks folder and referred to it in Other linker options: as -lsfml-system-s and it does not work.
I have also tried using the Search directories options where I pointed the compiler to the SFML-1.6\include folder and then pointed the Linker to the SFML-1.6\lib folder, yet I still do not have any luck.
Any help?
This is my code:
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime()<< std::endl;
sf::Sleep(0.5f);
}
return 0;
}