Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML doesn´t work  (Read 934 times)

0 Members and 1 Guest are viewing this topic.

amchacon

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML doesn´t work
« on: March 24, 2013, 11:13:52 am »
I am tryng install at CodeBlocks (Windows):

- First, i download SDK 2.0 from here:
http://www.sfml-dev.org/download.php
- Copy folders "lib" and include to Mingw folder´s.
- Create a emply project, i go to build options and add link library:



- Enter macro SFML_STATIC:



Add one file to project and one sample code:

#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "My window");

    // run the program as long as the window is open
    while (window.isOpen())
    {
        // check all the window's events that were triggered since the last iteration of the loop
        sf::Event event;
        while (window.pollEvent(event))
        {
            // "close requested" event: we close the window
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }

    return 0;
}

Compile great. But when i execute:



Test now with dinamyc lib, delete macro STATIC and compile. Copy DLL to the software folder´s. I have another  error:



*_*

 

anything