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

Author Topic: undefined reference.. only to font.loadfromfile?  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

palo

  • Newbie
  • *
  • Posts: 5
    • View Profile
undefined reference.. only to font.loadfromfile?
« on: April 14, 2018, 04:43:57 pm »
Hello,
I'm making a program in sfml, and until now i used graphics only(everything worked fine), but when i tried to do something with text i have a problem:
everything works, apart from font.loadFromFile(). when i comment this section, compiler doesn't show any problems, like undefined reference to text.setFont(font)
what can be the problem? O.o
i have correctly linked libraries, it worked on previous program.
thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: undefined reference.. only to font.loadfromfile?
« Reply #1 on: April 14, 2018, 09:37:26 pm »
Your compiler doesn't match the compiler used to build SFML.

The easy solution is to simply build SFML with CMake and your compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything