(self, body, headers=None, include_dirs=None, libraries=None,
                 library_dirs=None, lang="c")
return ok
Try to compile and link a source file, built from 'body' and
        'headers', to executable form.  Return true on success, false
        otherwise.
Try to compile and link a source file, built from 'body' and
        'headers', to executable form.  Return true on success, false
        otherwise.
Try to compile and link a source file built from body and headers to executable form . Return true on success false otherwise .
def try_link(self, body, headers=None, include_dirs=None, libraries=None,
                 library_dirs=None, lang="c"):
        """Try to compile and link a source file, built from 'body' and
        'headers', to executable form.  Return true on success, false
        otherwise.
        """
        from distutils.ccompiler import CompileError, LinkError
        self._check_compiler()
        try:
            self._link(body, headers, include_dirs,
                       libraries, library_dirs, lang)
            ok = True
        except (CompileError, LinkError):
            ok = False

        log.info(ok and "success!" or "failure.")
        self._clean()
        return ok
def try_link ( self , body , headers = None , include_dirs = None , libraries = None , library_dirs = None , lang = "c" ) : from distutils . ccompiler import CompileError , LinkError self . _check_compiler ( ) try : self . _link ( body , headers , include_dirs , libraries , library_dirs , lang ) ok = True except ( CompileError , LinkError ) : ok = False log . info ( ok and "success!" or "failure." ) self . _clean ( ) return ok