Rev 33027 | Blame | Last modification | View Log | Download | RSS feed
\name{SHLIB}\title{Build a DLL for Dynamic Loading}\description{The given source files are first compiled. All specified object filesare then linked into a shared library which can be loaded into \Rusing \code{dyn.load} or \code{library.dynam}.}\alias{SHLIB}\usage{\special{R CMD SHLIB [options] [-o dllname] files}}\arguments{\item{files}{a list of names of (typically) source files to becompiled and included in the library. You can also include the namesof object files which are automagically made from their sources.}\item{dllname}{the full name of the shared library to be built,including the extension \file{.dll}. If not given, the name ofthe DLL is taken from the first source file.}\item{options}{Further options to control the processing. Use\code{R CMD SHLIB --help} for a current list. The most useful oneis \code{-d} to build a debug DLL.}}\details{\code{R CMD SHLIB} uses the mechanism as used by \code{\link{INSTALL}}to compile source code in packages. To use \code{SHLIB} you need tohave installed (from the \R installer) the files for compiling sourcepackages as well as the tools described in the \sQuote{R Installation andAdministration} manual.Please consult section \sQuote{Creating shared objects} in the manual\sQuote{Writing R Extensions} for how to customize it (for example toadd \code{cpp} flags and to add libraries to the link step) and fordetails of some of its quirks.}\seealso{\code{\link{dyn.load}}, \code{\link{library.dynam}}.The \sQuote{R Installation and Administration} and \sQuote{Writing RExtensions} manuals.}\keyword{utilities}