helllo community!
i wanted to work a bit with the sfml.
So I downloaded the files and worked
a bit with the tuts.
But now i have the problem,when i try
to compile a program, he gives out some error-messages.
C:\C++\SFML\main.cpp|7|undefined reference to `__imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKSsmRKNS_14WindowSettingsE'|
C:\C++\SFML\main.cpp|22|undefined reference to `__imp___ZN2sf5ColorC1Ehhhh'|
C:\C++\SFML\main.cpp|22|undefined reference to `__imp___ZN2sf12RenderTarget5ClearERKNS_5ColorE'|
C:\C++\SFML\main.cpp|28|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\C++\SFML\main.cpp|28|undefined reference to `sf::RenderWindow::~RenderWindow()'|
||=== Build finished: 5 errors, 0 warnings ===|
And the Code:
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear the screen (fill it with black color)
App.Clear();
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}
please help
Ancient