SFML community forums
Help => Audio => Topic started by: fastrgv on June 18, 2017, 12:43:45 am
-
This is a minimal example demonstrating my difficulty using
the new 2017 AdaCore gnat compiler [using GCC v6.3.1]
versus that from 2016 [GCC v 4.9.4]
in order to create a simple Ada binding to SFML-Audio on Linux.
The script lcmp16.sh uses the older version and works fine.
The script lcmp17.sh uses the new version and fails...
[undefined references].
I have narrowed the problem to the executable "g++".
The 4.9.4 version works for me,
and newer versions do not.
Any suggestions how to make the new version compile
would be sincerely appreciated.
Here is a piece of the error message:
undefined reference to `sf::Music::openFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Rod
<fastrgv@gmail.com>
-
Looks like you simply have to recompile SFML using the newer g++
In GCC 5 they changed the ABI for some things, including strings. As such binaries may become incompatible.
-
Thanks eXpl0it3r. You were exactly right ! Everything works now.
Rod