Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problem Hello World !!!  (Read 893 times)

0 Members and 1 Guest are viewing this topic.

Sam4uk

  • Newbie
  • *
  • Posts: 1
    • View Profile
Problem Hello World !!!
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Problem Hello World !!!
« Reply #1 on: May 25, 2022, 01:41:22 pm »
You probably have header files that are newer than the SFML library itself.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/