I compiled qt statically and everything worked fine.

But somehow, and I don't know how, I've changed something and now qt is giving me a load of errors. I use qt4 and mingw.

I get a huge number of compiler errors starting with:

qtmain_win.cpp:-1: error: undefined reference to `__gxx_personality_sj0'
qtmain_win.cpp:-1: error: undefined reference to `_Unwind_SjLj_Register'

What have I done!?