If I remember it correctly, you should write a .def file and compile it with dlltool or something like that. It will create the import library.