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

Author Topic: SFML 2.3 Linux set up problem(std::__throw_out_of_range_fmt...)  (Read 5978 times)

0 Members and 1 Guest are viewing this topic.

pericleskb

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Hello!
Today I downloaded SFML-2.3 and I am trying to set it up on my Ubuntu 14.4 as described in the tutorials for linux.
I downloaded the 64-bit version for linux and extracted it in a non-standard path.
So when I am trying to compile the testing code stated there, the error I am getting from both Code::Blocks and from the terminal is the following:



My compiler is gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1).
Don't know if it matters.

However, the same example runs perfectly for versions 2.2 and 2.1.
Thanks in advance!


EDIT:
I'm sorry but I made a mistake previously. I was referencing a 2.3 version I had downloaded for windows...  :-[  :-\
Now I downloaded the linux version and I am facing an error I had come across earlier..

 g++ main.o -o sfml-app -L /home/pericles/SFML-2.3/lib -lsfml-graphics -lsfml-window -lsfml-system
../SFML-2.3/lib/libsfml-graphics.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'

Again, I'm sorry.
« Last Edit: May 18, 2015, 11:32:32 pm by pericleskb »

pericleskb

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: SFML 2.3 Linux set up problem
« Reply #1 on: May 18, 2015, 11:30:39 pm »
Turns out the problem was the compiler.
I installed version 4.9 of gcc and it compiled.
I found the answer here
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1328838

 

anything