Rev 42333 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/unix/COMPILE.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{COMPILE}\alias{COMPILE}\title{Compile Files for Use with R}\description{Compile given source files so that they can subsequently be collectedinto a shared library using \code{R CMD SHLIB} and be loaded into Rusing \code{dyn.load()}.}\usage{\special{R CMD COMPILE [options] srcfiles}}\arguments{\item{srcfiles}{A list of the names of source files to be compiled.Currently, C, C++, Objective C, Objective C++ and FORTRAN aresupported; the corresponding files should have the extensions\file{.c}, \file{.cc} (or \file{.cpp} or \file{.C}), \file{.m},\file{.mm} (or \file{.M}) and \file{.f}, respectively.}\item{options}{A list of compile-relevant settings, such as specialvalues for \code{CFLAGS} or \code{FFLAGS}, or for obtaininginformation about usage and version of the utility.}}\details{Note that Ratfor is not supported. If you have Ratfor source code,you need to convert it to FORTRAN. On many Solaris systems mixingRatfor and FORTRAN code will work.Objective C and Objective C++ support is optional and will work onlyif the corresponding compilers were available at R configure time.}\note{Some binary distributions of \R have \code{COMPILE} in a separatebundle, e.g. an \code{R-devel} RPM.}\seealso{\code{\link{SHLIB}},\code{\link{dyn.load}};the section on \dQuote{Customizing compilation under Unix} in\dQuote{R Administration and Installation}(see the \file{doc/manual} subdirectory of the \R source tree).}\keyword{utilities}