Do you possibly have two versions of the mingw libgcc.a somehow? I haven't
verified this on my system, since I am knee deep in something else right
now but nm on /lib/gcc-lib/i686-pc-mingw32/3.3.1/libgcc.a tells me:
w32-shared-ptr.o:
00000000 b .bss
00000000 d .data
00000000 t .text
U _AddAtomA@4
U _FindAtomA@4
U _GetAtomNameA@12
00000040 t ___w32_eh_shared_initialize
00000010 C ___w32_sharedptr
00000020 t ___w32_sharedptr_default_unexpected
000002a0 t ___w32_sharedptr_get
000000c0 T ___w32_sharedptr_initialize
000001f0 t ___w32_sharedptr_set
00000010 C ___w32_sharedptr_terminate
00000010 C ___w32_sharedptr_unexpected
U _abort
00000000 b _dw2_object_mutex.0
00000000 d _dw2_once.1
U _free
U _malloc
00000010 b _sjl_fc_key.2
00000008 d _sjl_once.3
00000000 t _w32_atom_suffix
For some reason you have a libgcc.a in your /usr/lib/mingw. I don't
Maybe that's the problem.