SFML community forums

Help => General => Topic started by: Sam4uk on May 25, 2022, 01:34:22 pm

Title: Problem Hello World !!!
Post by: Sam4uk on May 25, 2022, 01:34:22 pm
Problem Hello World !!!

I started studying SFML and came across a problem.
I can't build a tutorial project

When I execute a command
g ++ main.cpp --std = c ++ 17 -lsfml-graphics -lsfml-window -lsfml-system

  I receive

main.cpp : (. text + 0x124): undefined link «sf :: WindowBase :: pollEvent (sf :: Event &)»

What is the problem?
Help

My tools
g ++ (Ubuntu 9.4.0-1ubuntu1 ~ 20.04.1) 9.4.0
clang ++ version 10.0.0-4ubuntu1
cmake version 3.16.3
Title: Re: Problem Hello World !!!
Post by: eXpl0it3r on May 25, 2022, 01:41:22 pm
You probably have header files that are newer than the SFML library itself.