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

Author Topic: [Solved] Load from file throws "undefined reference to __imp_...".  (Read 2011 times)

0 Members and 1 Guest are viewing this topic.

popica23

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
I actually searched for this problem, but somehow I still can't manage to fix it ... Whenever I try to call loadFromFile, doesn't matter if it's from sf::Font, sf::Image, etc ... I get this error:

RTSGamePopica\src\level.cpp|9|undefined reference to `_imp___ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE'|


The code is here: https://github.com/popica23/RTSGamePopica
« Last Edit: March 28, 2018, 11:19:23 am by popica23 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10879
    • View Profile
    • development blog
    • Email
If you use the latest code::blocks version, then you need to build SFML from source as they ship a newer compiler than our binaries were built for.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

popica23

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Do you have any link on how to do that? :3

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10879
    • View Profile
    • development blog
    • Email
It's part of the official tutorials. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

popica23

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Oh sorry in that case, thanks a ton :D