SFML community forums

Help => General => Topic started by: Power on September 27, 2020, 08:41:35 pm

Title: (solved) I am back after a long pause, i need to reconfigure CodeBlocks
Post by: Power on September 27, 2020, 08:41:35 pm
Hello,
I lost one hard drive called "D:\" last month, it has all my codes, i could try to get my files back but as for now the hard drive is dead.
It has also my "project templates".

I just reconfigured the libraries ( https://www.sfml-dev.org/tutorials/2.5/start-cb.php) and tried to run the test code :
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}


I get this error message :
(image)
(https://i.postimg.cc/65xZR6wV/screenshot-283.png)

Could someone help?
I tried to check on all codeblocks parameters and did not find anything related to "D:\", then i tried to check my windows variables (PATH stuff), same thing i did not see anything related SFML.
Thanks

Title: Re: I am back after a long pause, i need to reconfigure CodeBlocks
Post by: Power on September 27, 2020, 09:17:30 pm
Found the solution :
I had added the "s" type library and the "non s" library aswell, i removed one and kept "\libsfml-graphics-d.a" and all 50 errors dissapeared.