Hi
Sorry for my English.
I installed a new system.
Linux version 4.13.11-1-ARCH (builduser @ tobias) (gcc version 7.2.0 (GCC)) # 1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017
later I installed SFML z2.5.0.1 from the repository.
I have an error when I try to compile the program.
g ++ main.cpp -o main -lsfml-system -lsfml-window -lsfml-graphics
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/libsfml-graphics.so: undefined reference to `powf@GLIBC_2.27 '
program is main.cpp
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow app(sf::VideoMode(800, 600), "SFML window");
// Load a sprite to display
sf::Texture texture;
if (!texture.loadFromFile("cb.bmp"))
return EXIT_FAILURE;
sf::Sprite sprite(texture);
// Start the game loop
while (app.isOpen())
{
// Process events
sf::Event event;
while (app.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
app.close();
}
// Clear screen
app.clear();
// Draw the sprite
app.draw(sprite);
// Update the window
app.display();
}
return EXIT_SUCCESS;
}
What i do wrong?
Best Regards Damian