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.