SHLIB {utils} | R Documentation |
Build a DLL for Dynamic Loading
Description
The given source files are first compiled. All specified object files
are then linked into a shared library which can be loaded into R
using dyn.load
or library.dynam
.
Usage
R CMD SHLIB [options] [-o dllname] files
Arguments
files |
a list of names of (typically) source files to be compiled and included in the library. You can also include the names of object files which are automagically made from their sources. |
dllname |
the full name of the shared library to be built, including the extension ‘.dll’. If not given, the name of the DLL is taken from the first source file. |
options |
Further options to control the processing. Use
|
Details
R CMD SHLIB
uses the mechanism as used by INSTALL
to compile source code in packages. To use SHLIB
you need to
have installed (from the R installer) the files for compiling source
packages as well as the tools described in the file
‘readme.packages’ in the top directory of the R installation.
Please consult section ‘Creating shared objects’ in the manual
‘Writing R Extensions’ for how to customize it (for example to
add cpp
flags and to add libraries to the link step) and for
details of some of its quirks.
See Also
dyn.load
, library.dynam
.
The ‘Writing R Extensions’ manual.