I have similar problems with windows+mingw when I want to compile my cs-application:
...
include/crystalspace/csutil/scfstr.h: undefined reference to `csStaticVarCleanup'
...
out\lib/libcrystalspace.a(cfgfile.o)(.text+0x656):cfgfile.cpp: undefined reference to `csStaticVarCleanup'
out\lib/libcrystalspace.a(cfgfile.o)(.text+0xb50):cfgfile.cpp: undefined reference to `csStaticVarCleanup'
out\lib/libcrystalspace.a(xmltiny.o)(.text+0xb6):xmltiny.cpp: undefined reference to `csStaticVarCleanup'
out\lib/libcrystalspace.a(xmltiny.o)(.text+0x246):xmltiny.cpp: undefined reference to `csStaticVarCleanup'
out\lib/libcrystalspace.a(xmltiny.o)(.text+0x336):xmltiny.cpp: undefined reference to `csStaticVarCleanup'
out\lib/libcrystalspace.a(xmltiny.o)(.text+0x526):xmltiny.cpp: more undefined references to `csStaticVarCleanup' follow
collect2: ld returned 1 exit status