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

Author Topic: undefined reference to sf::Font::loadFromFile  (Read 2356 times)

0 Members and 1 Guest are viewing this topic.

dedust4ever

  • Newbie
  • *
  • Posts: 1
    • View Profile
undefined reference to sf::Font::loadFromFile
« on: December 04, 2016, 12:17:13 pm »
code
(click to show/hide)
build log
(click to show/hide)

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: undefined reference to sf::Font::loadFromFile
« Reply #1 on: December 05, 2016, 05:16:14 am »
here's one problem


E:\Documents and Settings\CodeBlocks Projects\test\main.cpp|28|warning: suggest parentheses around assignment used as truth value [-Wparentheses]|

if(event.type = sf::Event::Closed)

should be

if(event.type == sf::Event::Closed)

as for the font, make sure you have the correct version of sfml with the correct compiler

sfml here
http://www.sfml-dev.org/download/sfml/2.4.1/

links to the compilers in the bottom of the first gray box


 

anything