http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500
--- Comment #3 from gee <jojelino at gmail dot com> 2011-12-12 14:48:52 UTC --- it seems that libffi handles calling convention of method which is cdecl or stdcall. but not for thiscall for mingw32 ia-32.