class_docstr: Handles the Mingw32 port of the GNU C compiler to Windows.
class_docstr_tok: ["Handles","the","Mingw32","port","of","the","GNU","C","compiler","to","Windows","."]
code: def __init__(self, verbose=0, dry_run=0, force=0):
      super().__init__(verbose, dry_run, force)
  
      shared_option = "-shared"
  
      if is_cygwincc(self.cc):
          raise CCompilerError(
              "Cygwin gcc cannot be used with --compiler=mingw32"
          )
  
      self.set_executables(
          compiler="%s -O -Wall" % self.cc,
          compiler_so="%s -mdll -O -Wall" % self.cc,
          compiler_cxx="%s -O -Wall" % self.cxx,
          linker_exe="%s" % self.cc,
          linker_so="{} {}".format(self.linker_dll, shared_option),
      )
  
imports: import os
  import re
  import sys
  import copy
  import shlex
  import warnings
  from subprocess import check_output
  from .unixccompiler import UnixCCompiler
  from .file_util import write_file
  from .errors import DistutilsExecError, DistutilsPlatformError, CCompilerError, CompileError
  from .version import LooseVersion, suppress_known_deprecation
  from ._collections import RangeMap
label_desc: Use image node_id 1 to create a new Mingw32CCompiler object from inherited base classes: CygwinCCompiler with example: obj = Mingw32CCompiler(verbose, dry_run, force)