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 - Marcin

Pages: [1]
1
General / Re: MinGW, Eclipse, all tutoria programs compile, but not working
« on: February 12, 2016, 01:44:26 am »
#include <SFML/Graphics.hpp>

int main()
{
        // create the window
        sf::RenderWindow 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();
                }

                // clear the window with black color
                window.clear(sf::Color::Black);

                // draw everything here...
                // window.draw(...);

                // end the current frame
                window.display();
        }

        return 0;
}
 

It's just random code that i found in one of tutorials


2
General / MinGW, Eclipse, all tutoria programs compile, but not working
« on: February 09, 2016, 03:57:07 am »
I'm pretty new in programming and i'm just starting with SFML, i configured Eclipse so it compile all tutorial programs, but when i try to run them from under Eclipse, they start and right away shut down without any error (yes, i know about loop holding windows), when i'm trying to run it from system (after adding all missing dll's) i'm getting error window "This application is unable to start correctly..."
Windows 10

Pages: [1]