Changes between Version 13 and Version 14 of BuildingWithMinGW
- Timestamp:
- Jul 15, 2011, 7:16:35 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingWithMinGW
v13 v14 127 127 #define HAVE_DECL_STRTOF 1 128 128 }}} 129 130 131 '''Python bindings :''' 132 133 If you use the regular Python Windows binaries, you need to edit $PYTHON_ROOT\lib\distutils\ccompiler.py (at least true for Python 2.7) and change the "_default_compilers" mapping as following, in order GCC to be used instead of MSVC when building the GDAL Python bindings : 134 135 {{{ 136 _default_compilers = ( 137 138 # Platform string mappings 139 140 # on a cygwin built python we can use gcc like an ordinary UNIXish 141 # compiler 142 ('cygwin.*', 'unix'), 143 ('os2emx', 'emx'), 144 145 # OS name mappings 146 ('posix', 'unix'), 147 148 # HACK for using mingw GCC 149 ('nt', 'mingw32'), 150 #('nt', 'msvc'), 151 152 ) 153 }}} 154 155 156