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

Author Topic: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint  (Read 2080 times)

0 Members and 1 Guest are viewing this topic.

rewitt1

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Hello! I have used SFML for codeblocks for a while and now decided to switch to Visual Studio 2013. After trying for a few hours, I went here to adress my problem: When running the program, the console shows up and then a box comes up saying:

Quote
Cannot find the procedureentrypoint ??1CircleShaoe@sf@@UAE@XZ in the DLL-file c:\users\anton\documents\visual studio 2013\MegaProject\Release\MegaProject.exe

Here's my 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;
}

This has never happened to me so I have no clue what's going on here :'(
What should I do to fix this? Thanks!

Btw, I am NOT using a static thingy to try to skip using DLL files. Though I tried it and it didn't work either  :-\

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint
« Reply #1 on: May 24, 2015, 12:11:45 am »
Why did you add a poll?

Also did you update your DLLs? VS 2012 DLLs won't work with VS 2013.
And yes you should updated to SFML 2.3.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint
« Reply #2 on: May 24, 2015, 11:07:57 am »
Grab the Dependency Walker, launch it and drag & drop your executable into it.

It will list you in a tree structure the library files loaded by your executable. Make sure it accesses the correct versions of SFML etc. If it doesn't, that's a starting point to find out where/why it's grabbing different versions.

rewitt1

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint
« Reply #3 on: May 24, 2015, 11:14:55 am »
Thanks for replying!

I don't know, It just showed up, and I had to fill something in. I probably just pressed the wrong button.

I redownloaded "Visual C++ 12 (2013) - 32-bit" from sfml-dev.org after installing Visual Studio 2013.

Is this the wrong file? this is the 2.3 version, right?

I have windows 8 if that matters.

rewitt1

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint
« Reply #4 on: May 24, 2015, 11:52:50 am »
Grab the Dependency Walker, launch it and drag & drop your executable into it.

It will list you in a tree structure the library files loaded by your executable. Make sure it accesses the correct versions of SFML etc. If it doesn't, that's a starting point to find out where/why it's grabbing different versions.

Thanks for your answer! I downloaded dw and it showed that some files were missing. I tried putting the dlls in system32 again but the error still remains.

I checked the include and library directories and they were up to date. Then I tried to rebuild the project and there was no difference.

And the weird thing is that the examples included in the examples folder worked totally fine. So there must be something happening when compiling?

Thanks for all your help!

Serapth

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: C++ Visual Studio 2013 SFML 2.2: Cannot find procedureentrypoint
« Reply #5 on: May 28, 2015, 12:30:13 am »
Did you notice in your error message its looking for a method named CircleShaoe instead of CircleShape?  Youve a typo somewhere.

 

anything