Ctypes problem and answer: __gxx_personality_v0

Today I was playing with ctypes. I was getting this error:

Traceback (most recent call last):
  File "mb.py", line 4, in ?
      mb = cdll.LoadLibrary("/usr/local/lib/libmusicbrainz.so.4")
        File "/usr/local/lib/python2.3/site-packages/ctypes/__init__.py",
line 286, in LoadLibrary
    return self._dlltype(name)
      File "/usr/local/lib/python2.3/site-packages/ctypes/__init__.py", line
222, in __init__
    self._handle = LoadLibrary(self._name)
    OSError: /usr/local/lib/libmusicbrainz.so.4: undefined symbol:

Turns out that I had built libmusicbrainz.so with an older g++. This debian bug report helped, as did this posting on gcc-l.