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 - cdlink14

Pages: [1]
1
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 07:28:24 pm »
I need help with using SFML in Code::Blocks, I have it all set up correctly, and I'm using the tutorial to try and draw a basic window but it's not showing

Here's the code:

Code: [Select]

#include <SFML/Window.hpp>

int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}

return EXIT_SUCCESS;
}


I know SFML is set up correctly as the code in this tutorial works perfectly:
http://www.sfml-dev.org/tutorials/1.6/start-cb.php

When I run the application I just get the console window:
http://dl.dropbox.com/u/3901038/FP/sfml/SFM2L.JPG

I've tried compiling in Debug and Release (using their respective dependencies).

Well when I set it to debug it doesn't seem to reach any breakpoints, it doesn't even reach "int main()", which leads me to believe this is an error with an header file...

Any help on how to go about finding/fixing it?

Also this happens running SFML on VS2008 (using the correct files/tutorials).

Specs:
windows 7 Pro x64
Code::Blocks 10.05
Visual Studio 2008
SFML C++ FULL SDK 1.6
Need anything else just ask.

Pages: [1]
anything