Question

For some odd reason when I try to render a simple window in SFML, I get a strange error when using Visual C++ 2010: The procedure entry point ??()VideoMode@sf@@QAE@III@Z could not be located in the dynamic link library sfml-window.dll

When using Code::Blocks I get no error at all. But the problem seems to be the same.

However the point is I still get no SFML application window, or a "fixed" window as I like to call it.

What's my problem?

Was it helpful?

Solution

I just found out that I had to statically link the libraries.

Thank for your answers though.

OTHER TIPS

The problem is that the DLLs that are being loaded, do not match the lib files that you are linking with.

I have resolved similar problems by recompiling the DLL's under the same compiler and settings as the executable project

You're not linking all the libraries. Code::Blocks link all of 'em automatically, but not VS. When i create applications using OpenGL, i do this (linking via code, doesn't looks pretty, but "just works"):

#pragma comment(lib, "sfml-system.lib")
#pragma comment(lib, "sfml-window-s.lib")
#pragma comment(lib, "sfml-graphics.lib")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top