-
SDL with g++
How can I get SDL to work with g++? In gcc it works fine, but when I try to compile something with g++.. well the compile is fine, but at runtime I get the following error message and it exits:
Code:
./images: /usr/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ./images)
This is my compile line:
Code:
g++ -Wall `sdl-config --cflags` -o images images.cpp `sdl-config --libs` -lm
Also, is there anything specific I need to pass when using ld to link, to get it to work? I haven't really messed with it, but I might.
-
that same thing happened to me when I tried to get a program working. I can't remember what program, I think xmms, but just go get that library. libstdc++.so.5 is what you need
-
I have it - it's in /usr/lib. Apparently it's not the right version or something?
-
-
It still gives the same error.
-
I remember what you need. If in gentoo emerge compat-libs if not just go donwload the rpm or deb file or what not. Let me know if that works
-
It's already merged, I even emerged it again just in case (was the latest version) and it didn't work :(.