diff -u a/cygwinccompiler.py b/cygwinccompiler.py --- a/cygwinccompiler.py 2008-05-30 16:56:20.253000000 -0500 +++ b/cygwinccompiler.py 2008-05-30 16:56:53.116000000 -0500 @@ -419,7 +419,7 @@ out = os.popen(ld_exe + ' -v','r') out_string = out.read() out.close() - result = re.search('(\d+\.\d+(\.\d+)*)',out_string) + result = re.search('(\d+\.\d+(\.\d+)?)(\.\d+)*',out_string) if result: ld_version = StrictVersion(result.group(1)) else: @@ -431,7 +431,7 @@ out = os.popen(dllwrap_exe + ' --version','r') out_string = out.read() out.close() - result = re.search(' (\d+\.\d+(\.\d+)*)',out_string) + result = re.search(' (\d+\.\d+(\.\d+)?)(\.\d+)*',out_string) if result: dllwrap_version = StrictVersion(result.group(1)) else: