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

Pages: [1]
1
General / CodeBlocks 12.11 SFML 2.0
« on: February 15, 2013, 10:46:18 pm »
Hi,

I want to use sfml 2.0 with codeblocks 12.11 i have Cmake'd sfml from github and rebuild it in codeblocks, but i still get an error when i compile the basic program found in the first sfml 2.0 tutorial.

edit: i am using windows 7.
code i used.
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

Error i get.
Code: [Select]
G:\SFML\SFML-Base\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'|

2
General / sfml 1.6 & 2.0 crash window.dll
« on: December 15, 2012, 11:46:43 pm »
Hi,

I am trying SFML for the first time and i  immediately have a problem.
i have followed the first tutorial for setting up codeblocks.

after i have compiled the program with the code thats in the tutorial the program crashes ans when i check
where is went wrong it states that it went wrong with window.dll (for 1.6) and window-2.dll (for 2.0 RC)

i am using codeblocks 12.11

fixed it by recompiling sfml 2.0rc.

Pages: [1]