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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ArtyomTank

Pages: [1]
2
General / Error compilation programm с++ SFML.
« on: April 10, 2019, 11:52:54 am »
compilator throw error
Error:

In file included from E:\SFMLProjects\Test\testSFML.cpp:1:
E:/libs/SFMLnotBuild/SFML-2.5.1/include/SFML/System.hpp:32:10: fatal error: SFML/Config.hpp: No such
file or directory
#include <SFML/Config.hpp>
^~~~~~~~~~~~~~~~~
compilation terminated.



I input this:

E:\MinGW\mingw32\bin>
g++ -static -o -LE:\libs\SFMLnotBuild\SFML-2.5.1\include -LE:\libs\SFMLnotBuild\SFML-2.5.1\lib -LE:\libs\SFMLnotBuild\SFML-2.5.1\bin -lsfml-window -lsfml-graphics -lsfml-system -static -libcc -static -libstdc++ E:\SFMLProjects\Test\testSFML.cpp




this code:

#include <E:/libs/SFMLnotBuild/SFML-2.5.1/include/SFML/System.hpp>
#include <E:/libs/SFMLnotBuild/SFML-2.5.1/include/SFML/Window.hpp>
#include <E:/libs/SFMLnotBuild/SFML-2.5.1/include/SFML/Graphics.hpp>
int main(){
    sf::RenderWindow window(sf::VideoMode({800, 600}),"Test");
   
    window.clear();
   
    sf::CircleShape circle(40);
    circle.setPosition({200,120});
    circle.setFillColor(sf::Color(0xFF,0x0,0x0));
    window.draw(circle);
   
    window.display();
   
    sf::sleep(sf::seconds(20));
}

Pages: [1]
anything