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

Author Topic: Compiles but crashes at sf::VideoMode  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

Sidar

  • Newbie
  • *
  • Posts: 14
    • View Profile
Compiles but crashes at sf::VideoMode
« on: July 29, 2012, 03:35:41 am »
Hi,

I've downloaded the mingw 4.7 compiler and enabled C++11. Everything worked fine on 4.6.
I can compile my code but it doesn't run.

Debugger returns:

0  0x691c2811  sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)    
1  0x004755a6  main  
 

I've tried both
Windows 32 bits - GCC DW2
Windows 32 bits - GCC SJLJ

Neither works for me.

Any suggestions what I might be doing wrong?

Compiler:>mingw 4.7 C++11;
IDE:>Codelite;

( Yes I have tried SFML code only to run a window )
« Last Edit: July 29, 2012, 04:02:29 am by Sidar »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiles but crashes at sf::VideoMode
« Reply #1 on: July 29, 2012, 10:24:02 am »
This version of gcc is not compatible with the precompiled SFML packages, you must recompile it.
Laurent Gomila - SFML developer

Sidar

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Compiles but crashes at sf::VideoMode
« Reply #2 on: July 29, 2012, 04:52:10 pm »
Ah, thanks.

Edit:

I compiled the source but it only seems to output the dll files without the -d infix (like sfml-window-d-2.dll).
But how important are these dll files for debugging?
« Last Edit: July 29, 2012, 05:12:51 pm by Sidar »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiles but crashes at sf::VideoMode
« Reply #3 on: July 29, 2012, 05:48:47 pm »
Your build is configured for only one configuration. If you want both debug and release libraries, you must restart the entire process and change the CMAKE_BUILD_TYPE variable accordingly.
Laurent Gomila - SFML developer

Sidar

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Compiles but crashes at sf::VideoMode
« Reply #4 on: July 29, 2012, 06:08:23 pm »
Thank you again.