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

Author Topic: Run time crash with Code::Blocks, fine with VC++  (Read 1403 times)

0 Members and 1 Guest are viewing this topic.

Paulo Alcino

  • Newbie
  • *
  • Posts: 1
    • View Profile
Run time crash with Code::Blocks, fine with VC++
« on: February 11, 2011, 01:49:06 am »
Hello,

I am writing because I just started using SFML but am facing some weird problems. I was trying to follow the first tutorial about windows.

My IDE of choice is Code::Blocks but I usually set it to use the VC++ compiler. Nevertheless, I have MinGW at hand, just in case. Ah, in case it helps, I'm running Windows 7 on a laptop with an ATI graphics card.

So, I write a simple program to display a blank window. It compiles fine. When running, however, upon reaching the line where I declare the sf::Window it crashes. If, however, I compile the thing within VC++ 2010 it works just fine.

So, is there any reason why this is happening?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Run time crash with Code::Blocks, fine with VC++
« Reply #1 on: February 11, 2011, 11:48:07 am »
Are you sure you link correctly and use the right configuration (debug/release, static/dynamic)? And did you recompile SFML?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything