Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
Try to compile and link a source file, built from 'body' and
'headers', to executable form.  Return true on success, false
otherwise.

src/h/t/htmltotext-0.7.3/configutils/config.py   htmltotext(Download)
        self._check_compiler()
        for t in ("char *", "const char *"):
            if self.try_link(iconv_inputtype_code % {'t': t},
                             headers=('iconv.h', ),
                             lang="c++",

src/m/p/mpi4py-1.3.1/conf/mpidistutils.py   mpi4py(Download)
        log.info("checking for library '%s' ..." % library)
        body = "int main(int n, char**v) { return 0; }"
        ok = self.try_link(body,  headers, include_dirs,
                           [library]+other_libraries, library_dirs,
                           lang=lang)
        body.append(    "}")
        body = "\n".join(body) + "\n"
        ok = self.try_link(body, headers, include_dirs,
                           libraries, library_dirs, lang=lang)
        return ok
        body.append("}")
        body = "\n".join(body) + "\n"
        ok = self.try_link(body, headers, include_dirs,
                           libraries, library_dirs, lang=lang)
        return ok
        self._check_compiler()
        configure_compiler(self.compiler, config, lang='c')
        self.try_link(ConfigTest, headers=['mpi.h'], lang='c')
        # test MPI C++ compiler
        self.compiler = getattr(
            self.compiler, 'compiler_type', self.compiler)
        self._check_compiler()
        configure_compiler(self.compiler, config, lang='c++')
        self.try_link(ConfigTest, headers=['mpi.h'], lang='c++')

src/p/y/pyofa-1.0.3/setup.py   pyofa(Download)
    def check_lib(self, name, function, includes, libraries):
        for libs in libraries:
            res = self.try_link(
                "%s\nint main() { void *tmp = (void *)%s; return 0; }" % (
                    "\n".join('#include <%s>' % i for i in includes),

src/p/y/pyca-HEAD/skeleton/project/setup.py   pyca(Download)
  def check_lib (self, library, library_dirs=None, headers=None, include_dirs=None, 
                 other_libraries=[]):
    self._check_compiler()
    return self.try_link("int main (void) { return 0; }", headers, include_dirs, 
    [library]+other_libraries, library_dirs)

src/t/c/tc-0.7.2/setup.py   tc(Download)
  def check_lib (self, library, library_dirs=None, headers=None, include_dirs=None, 
                 other_libraries=[]):
    self._check_compiler()
    return self.try_link("int main (void) { return 0; }", headers, include_dirs, 
    [library]+other_libraries, library_dirs)

src/t/c/tc-HEAD/setup.py   tc(Download)
  def check_lib (self, library, library_dirs=None, headers=None, include_dirs=None, 
                 other_libraries=[]):
    self._check_compiler()
    return self.try_link("int main (void) { return 0; }", headers, include_dirs, 
    [library]+other_libraries, library_dirs)