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

Author Topic: Unhandled exception in VS 2013 for load image  (Read 1189 times)

0 Members and 1 Guest are viewing this topic.

mohamad1994

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Unhandled exception in VS 2013 for load image
« on: May 13, 2014, 09:36:02 pm »
Hi
in my project I need load and show an image , I programming with VS 2013 .

the simple code below :

#include <SFML\Graphics\Image.hpp>

using namespace sf;

void main(){

        Image i;

        i.loadFromFile("image.jpg");
}

and this exception :


can anyone help me ?  :(

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Unhandled exception in VS 2013 for load image
« Reply #1 on: May 13, 2014, 10:12:06 pm »
Seems like you link to an incompatible library. msvcr110.dll refers to Visual C++ 11, the compiler of Visual Studio 2012. You however say you develop in VS 2013.

You should recompile SFML with CMake as explained in the official tutorial, or use the nightly builds.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: