I encountered the same problem as you. If you compile it to
a big static lib (define _CONSOLE and _WINDOWS and WIN32) then it
works. But this is not what we really needed, isn't it?
Aparently v4 doesn't really support DLL.
------------------------------------------------------------------------
Tao Jiang Visiting Engineer, E40-369, CECI, MIT
phone: (617)-253-3514(o) (617)-576-9665 (h)
email: jiangt@ceci.mit.edu.cn, jiang@mccux0.mech.pku.edu.cn
URL: http://www.mech.pku.edu.cn, gopher://gopher.mech.pku.edu.cn
-------------------------------------------------------------------------