klepto2 #1 Take a look at this post. The third post describes the usage of pexports and dlltool(both belong to the MinGW compiler).