SFML community forums

Help => General => Topic started by: DirtyBlasion on January 22, 2017, 06:03:26 pm

Title: Window not opening!?
Post by: DirtyBlasion on January 22, 2017, 06:03:26 pm
So today, I opened code::blocks, to continue my project... But there was a problem

Code: [Select]
Process returned -1073741511 (0xC0000139)   execution time : 0.005 s
Press any key to continue.
that is what the console says. I tried to make the a test in a new project, the same.
Code: [Select]
#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

using namespace std;
using namespace sf;

int main()
{
    RenderWindow window(VideoMode(640, 360), "DirtyCraft");

    while(window.isOpen())
    {
        Event e;
        while(window.pollEvent(e))
        {
            switch(e.type)
            {
                case sf::Event::Closed: window.close(); break;
            }
        }

        window.clear();

        window.display();
    }
    cout << "Hello world!" << endl;
    return EXIT_SUCCESS;
}

And after that I putted in the new project, the dlls, I put debug first, same, I put the release, and both, the same... :'( :'( :'(. Libraries are linked(I linked the entyre folder that comes with sfml in lib.)

Title: Window not opening!?
Post by: eXpl0it3r on January 22, 2017, 07:36:52 pm
Did you Google the error code (0xC0000139)? You'll get a lot of articles that might give you an idea what is going on.

"Entry point not found" means that the compiler doesn't know where to set the starting point of the application.

I assume you linked sfml-main
a) without knowing what it actually does and
b) not setting the subsystem to "Windows".

I suggest you read the setup tutorial again. ;)
Title: Re: Window not opening!?
Post by: DirtyBlasion on January 22, 2017, 10:26:47 pm
I got it working, I deleted it and I put GCC 4.9.2 TDM (SJLJ) - 32-bit. I had GCC 6.1.0 MinGW (DW2) - 32-bit.

But my question whats the difference between these two? And Why the old one wasnt working?