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

Author Topic: Window not opening!?  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

DirtyBlasion

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Window not opening!?
« 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.)


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Window not opening!?
« Reply #1 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

DirtyBlasion

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Window not opening!?
« Reply #2 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?