Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
[Solved] Load from file throws "undefined reference to __imp_...".
Print
Pages: [
1
]
Author
Topic: [Solved] Load from file throws "undefined reference to __imp_...". (Read 2532 times)
0 Members and 1 Guest are viewing this topic.
popica23
Newbie
Posts: 3
[Solved] Load from file throws "undefined reference to __imp_...".
«
on:
March 28, 2018, 10:49:45 am »
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
»
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: Load from file throws "undefined reference to __imp_...". I'm using codeblocks
«
Reply #1 on:
March 28, 2018, 11:05:53 am »
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.
Logged
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
Re: Load from file throws "undefined reference to __imp_...". I'm using codeblocks
«
Reply #2 on:
March 28, 2018, 11:13:03 am »
Do you have any link on how to do that? :3
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: Load from file throws "undefined reference to __imp_...". I'm using codeblocks
«
Reply #3 on:
March 28, 2018, 11:16:39 am »
It's part of the
official tutorials
.
Logged
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
Re: Load from file throws "undefined reference to __imp_...". I'm using codeblocks
«
Reply #4 on:
March 28, 2018, 11:18:43 am »
Oh sorry in that case, thanks a ton
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
[Solved] Load from file throws "undefined reference to __imp_...".