Just wondering why are you trying to package the regex spencer library instead of using the glibc-extracted regex functions packaged in mingw project as libgnurx? Cheers Fridrich P.S.: Maybe this can be useful to read: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/regex.README