www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Derelict3+SFML2

reply "Zhenya" <zheny list.ru> writes:
Hello, I've got a little problem with DerelictSFML2. Despite the 
fact that I downloaded from the official website binaries CSFML2, 
this little application closes with the message: "Failed to load 
symbol sfWindow_setSize from shared library csfml-window-2.dll"

module main;

import std.stdio;

import derelict.sfml2.system;
import derelict.sfml2.window;

int main (string [] argv)
{
DerelictSFML2System.load ();
DerelictSFML2Window.load ();
return 0;
}

Could you explain to me what is wrong?
Sep 01 2012
next sibling parent "cal" <callumenator gmail.com> writes:
On Saturday, 1 September 2012 at 15:53:20 UTC, Zhenya wrote:
 Hello, I've got a little problem with DerelictSFML2. Despite 
 the fact that I downloaded from the official website binaries 
 CSFML2, this little application closes with the message: 
 "Failed to load symbol sfWindow_setSize from shared library 
 csfml-window-2.dll"

I just had a look at the windows sfml2 binary folder, and the setSize symbol is not included in the csfml-window-2.dll exports (although getSize is). You might have to rebuild from source. (There are quite a few symbols missing from the prebuilt binaries, based on what should be there from the docs on the website).
Sep 01 2012
prev sibling parent "Zhenya" <zheny list.ru> writes:
On Saturday, 1 September 2012 at 19:59:33 UTC, cal wrote:
 On Saturday, 1 September 2012 at 15:53:20 UTC, Zhenya wrote:
 Hello, I've got a little problem with DerelictSFML2. Despite 
 the fact that I downloaded from the official website binaries 
 CSFML2, this little application closes with the message: 
 "Failed to load symbol sfWindow_setSize from shared library 
 csfml-window-2.dll"

I just had a look at the windows sfml2 binary folder, and the setSize symbol is not included in the csfml-window-2.dll exports (although getSize is). You might have to rebuild from source. (There are quite a few symbols missing from the prebuilt binaries, based on what should be there from the docs on the website).

Thank you very much,I will try to build csfml from source.
Sep 01 2012