I am running Linux Mint 12 on an i686.
I am running a program that uses SFML. I compile and run it as such:
g++ -c lineTest.cpp Rasterizer.cpp simpleCanvas.cpp
g++ -o lineTest lineTest.o Rasterizer.o simpleCanvas.o -lsfml-graphics -lsfml-window -lsfml-system
After when I try to run the program lineTest, I get the following error:
$ ./lineTest
./lineTest: symbol lookup error: /usr/local/lib/libsfml-window.so.1.6: undefined
symbol: _ZN2sf7Unicode11UTF8OffsetsE
I'm not using any IDE, just running everything from the command line. Does anyone know what I can do to get rid of the error and get the program to run?
If I had to guess I would say you have sfml in both /usr/lib and /usr/local/lib. Decoding the mangled name:
> c++filt _ZN2sf7Unicode11UTF8OffsetsE
sf::Unicode::UTF8Offsets
so, libsfml-window.so looks for the sf::Unicode::UTF8Offsets
function but cannot find it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.