I\'m trying to do a debug build of the Rabbyt library using mingw\'s gcc to run with my MSVC built python26_d.. I got a lot of undefined references which caused me to create
In the file C:\Python27\Lib\distutils\cygwinccompiler.py, which contains the MinGW compiler settings, find the Mingw32CCompiler class:
self.set_executables(compiler='gcc -O -Wall',
compiler_so='gcc -mdll -O -Wall',
compiler_cxx='g++ -O -Wall',
linker_exe='gcc ',
linker_so='%s %s %s'
% (self.linker_dll, shared_option,
entry_point))
and add -D MS_WIN64 to the compiler_so argument:
compiler_so='gcc -mdll -O -Wall -D MS_WIN64'