--- a/SConstruct 2020-08-18 21:46:01.777450782 +0100 +++ b/SConstruct 2020-08-18 21:46:21.481074392 +0100 @@ -45,8 +45,9 @@ retval = 0 try: - if ((string.atoi(ret[0]) == major and string.atoi(ret[2]) >= minor) - or (string.atoi(ret[0]) > major)): + version = ret.split(".") + if ((int(version[0]) == major and int(version[1]) >= minor) + or (int(version[0]) > major)): retval = 1 except ValueError: print("No C++ compiler found!")