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

Author Topic: RenderWindow causes app to fail.  (Read 5600 times)

0 Members and 1 Guest are viewing this topic.

lightfoot256

  • Newbie
  • *
  • Posts: 4
    • View Profile
RenderWindow causes app to fail.
« on: November 12, 2007, 10:17:25 pm »
If I compile the following:

       sf::Window App(sf::VideoMode(800, 600, 16), "SFML Graphics");

It works fine and runs. However, if i use this instead:

       sf::RenderWindow App(sf::VideoMode(800, 600, 16), "SFML Graphics");

It compiles file, but crashes before the "main" function and terminates.

Tried compiling against static and dynamic but same effect.

Any ideas?

Using mingw on windows.

Diego

  • Newbie
  • *
  • Posts: 6
    • View Profile
RenderWindow causes app to fail.
« Reply #1 on: November 12, 2007, 10:23:55 pm »
Try debugging to see where it crashes. Never happenned this to me.

lightfoot256

  • Newbie
  • *
  • Posts: 4
    • View Profile
RenderWindow causes app to fail.
« Reply #2 on: November 12, 2007, 10:30:16 pm »
Debugger says the process doesn't exist.

Its as if it crashed before the debugger got hold of it... very wierd.

lightfoot256

  • Newbie
  • *
  • Posts: 4
    • View Profile
RenderWindow causes app to fail.
« Reply #3 on: November 12, 2007, 10:35:05 pm »
Fixed, I didn't have the DevIL libraries.

Did I miss something in the install? Didn't see anywhere about installing those... ah well.

Fixed it.

Cheers.

lightfoot256

  • Newbie
  • *
  • Posts: 4
    • View Profile
RenderWindow causes app to fail.
« Reply #4 on: November 12, 2007, 10:41:21 pm »
Okay. I forgot to copy the dlls from C:\SFML-1.1\extlibs\bin.

Ooops :-p

 

anything