I have managed to build the boost libraries with b2 and the gcc toolset option. 

Alas, whenever I use a header which invokes such a library in Code::Blocks chained with MingW I get these errors:

undefined reference to _Unwind_SiLj_Register  undefined reference to _Unwind_SiLj_Unregister
undefined reference to _Unwind_SiLj_Resume
undefined reference to __gxx_personality_sj0
undefined reference to _WSACleanup@0
undefined reference to _WSAStartup@8

All but the last two repeatedly.  I would really appreciate anyone who could point me out of this mess. 

Thanks!