Dzień Dobry!
Mam problemy związane z instalacją biblioteki SFML (C++) dla Code::Blocks
Typ erroru po zainstalowaniu jej są następujące:
1. D:\sfml\tut\Kurs SFML\main.cpp|6|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
2. D:\sfml\tut\Kurs SFML\main.cpp|6|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'|
3. D:\sfml\tut\Kurs SFML\main.cpp|6|undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'|
Jest ich oczywiście więcej, ale nie ma sensu dania wszystkich errorów.
Kod źródłowy:
#include <SFML/Graphics.hpp>
#include <cmath>
int main()
{
sf::RenderWindow okno( sf::VideoMode( 320, 240 ), "Kurs SFML 2.0 - http://cpp0x.pl" );
sf::Clock stoper;
while( okno.isOpen() )
{
sf::Event event;
while( okno.pollEvent( event ) )
{
if( event.type == sf::Event::Closed )
okno.close();
} //while
okno.clear();
sf::CircleShape ksztalt( std::sin( stoper.getElapsedTime().asSeconds() ) * okno.getSize().y / 8 + okno.getSize().y / 4 );
ksztalt.setOrigin( sf::Vector2f( ksztalt.getRadius(), ksztalt.getRadius() ) );
ksztalt.setPosition( okno.getSize().x / 2.0f, okno.getSize().y / 2.0f );
ksztalt.setFillColor( sf::Color::Yellow );
okno.draw( ksztalt );
okno.display();
} //while
return 0;
}