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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - void

Pages: [1]
1
General / SFML2 with mingw
« on: March 15, 2013, 01:13:24 am »
Hi

For a short time I'm far a way from my Linux machine so I decided to use the same code under Windows.
I've installed mingw, everything compiles and links fine.

Then an error comes from code:
 sf::VideoMode vm(600, 500, 32);
That's the beginning of my program (temporary to pinpoint the problem)

Program received signal SIGSEGV, Segmentation fault.
0x691c2811 in sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int) ()

Who there can be a segfault within that function?:
VideoMode::VideoMode(unsigned int modeWidth, unsigned int modeHeight, unsigned int modeBitsPerPixel) :
width       (modeWidth),
height      (modeHeight),
bitsPerPixel(modeBitsPerPixel)
{

}
 

Pages: [1]