0 Members and 2 Guests are viewing this topic.
~/Downloads/game/byExample/1$ g++ start.cpp -lsfml-graphics -lsfml-window -lsfml-system -o start/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-system.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-system.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-system.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::reserve(unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-window.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-window.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-window.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libsfml-graphics.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const@GLIBCXX_3.4.21'collect2: error: ld returned 1 exit status