class_docstr: Abstract base class to define the interface that must be implemented
  by real compiler classes.  Also has some utility methods used by
  several compiler classes.
  
  The basic idea behind a compiler abstraction class is that each
  instance can be used for all the compile/link steps in building a
  single project.  Thus, attributes common to all of those compile and
  link steps -- include directories, macros to define, libraries to link
  against, etc. -- are attributes of the compiler instance.  To allow for
  variability in how individual files are treated, most of those
  attributes may be varied on a per-compilation or per-link basis.
class_docstr_tok: ["Abstract","base","class","to","define","the","interface","that","must","be","implemented","by","real","compiler","classes",".","Also","has","some","utility","methods","used","by","several","compiler","classes",".","The","basic","idea","behind","a","compiler","abstraction","class","is","that","each","instance","can","be","used","for","all","the","compile\/link","steps","in","building","a","single","project",".","Thus",",","attributes","common","to","all","of","those","compile","and","link","steps","--","include","directories",",","macros","to","define",",","libraries","to","link","against",",","etc",".","--","are","attributes","of","the","compiler","instance",".","To","allow","for","variability","in","how","individual","files","are","treated",",","most","of","those","attributes","may","be","varied","on","a","per-compilation","or","per-link","basis","."]
code: def object_filenames(
      self, source_filenames, strip_dir=0, output_dir=""
  ):
      if output_dir is None:
          output_dir = ""
      obj_names = []
      for src_name in source_filenames:
          base, ext = os.path.splitext(src_name)
          base = os.path.splitdrive(base)[1]  # Chop off the drive
          base = base[
              os.path.isabs(base) :
          ]  # If abs, chop off leading /
          if ext not in self.src_extensions:
              raise UnknownFileError(
                  "unknown file type '%s' (from '%s')" % (ext, src_name)
              )
          if strip_dir:
              base = os.path.basename(base)
          obj_names.append(
              os.path.join(output_dir, base + self.obj_extension)
          )
      return obj_names
  
imports: import sys, os, re
  from distutils.errors import *
  from distutils.spawn import spawn
  from distutils.file_util import move_file
  from distutils.dir_util import mkpath
  from distutils.dep_util import newer_group
  from distutils.util import split_quoted, execute
  from distutils import log
label_desc: Use image node_id 39 for calling the CCompiler obj's underlying member method code with example usage: obj.object_filenames(source_filenames, strip_dir, output_dir) and returns: obj_names