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

Pages: [1]
1
General / Can't get even an example program to run
« on: August 13, 2012, 09:00:31 pm »
I have codeblocks 10.05 and Windows 7 Home Premium 64bit.

I defined SFML_DYNAMIC and put

-lsfml-system
-lsfml-window
-lsfml-graphics
-lsfml-network
-lsfml-audio
-lopengl32
-lglu32

In the linker settings.


and added C:\Program Files (x86)\CodeBlocks\SFML\include to  Search directories -> compiler and added


C:\Program Files (x86)\CodeBlocks\SFML\lib to Search directories -> linker.


I then put all the dll's in the project folder and built and run this example.


#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}
 

All I get is program.exe has stopped working.

I searched this on google first.

Pages: [1]
anything