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.
G:\SFML\SFML-Base\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE'|