Logged In: NO

I guess you are linking against an msvc compiled library. That may not work. You can build your own static library you just have to add:
automated.c, basic.c, console.c, cuerror.c, mymem.c testdb.c testrun.c and util.c

Regards
Friedrich