| Line 37... |
Line 37... |
| 37 |
compilation commands for C, C++, Objective C(++) and Fortran sources: Fortran
|
37 |
compilation commands for C, C++, Objective C(++) and Fortran sources: Fortran
|
| 38 |
90/95 sources can also be used but it may not be possible to mix these
|
38 |
90/95 sources can also be used but it may not be possible to mix these
|
| 39 |
with other languages (on most platforms it is possible to mix with C,
|
39 |
with other languages (on most platforms it is possible to mix with C,
|
| 40 |
but mixing with C++ rarely works).
|
40 |
but mixing with C++ rarely works).
|
| 41 |
|
41 |
|
| 42 |
Please consult section \sQuote{Creating shared objects} in the manual
|
42 |
Please consult Section \manual{R-exts}{Creating shared objects}
|
| 43 |
\sQuote{Writing R Extensions} for how to customize it (for example to
|
43 |
for how to customize it (for example to
|
| 44 |
add \code{cpp} flags and to add libraries to the link step) and for
|
44 |
add \code{cpp} flags and to add libraries to the link step) and for
|
| 45 |
details of some of its quirks.
|
45 |
details of some of its quirks.
|
| 46 |
|
46 |
|
| 47 |
Items in \code{files} with extensions \file{.c}, \file{.cpp},
|
47 |
Items in \code{files} with extensions \file{.c}, \file{.cpp},
|
| 48 |
\file{.cc}, \file{.C}, \file{.f}, \file{.f90}, \file{.f95}, \file{.m}
|
48 |
\file{.cc}, \file{.C}, \file{.f}, \file{.f90}, \file{.f95}, \file{.m}
|
| Line 76... |
Line 76... |
| 76 |
#ifdef unix
|
76 |
#ifdef unix
|
| 77 |
\code{\link{COMPILE}},
|
77 |
\code{\link{COMPILE}},
|
| 78 |
#endif
|
78 |
#endif
|
| 79 |
\code{\link{dyn.load}}, \code{\link{library.dynam}}.
|
79 |
\code{\link{dyn.load}}, \code{\link{library.dynam}}.
|
| 80 |
|
80 |
|
| 81 |
The \sQuote{R Installation and Administration} and
|
81 |
\manual{R-exts}{} and
|
| 82 |
\sQuote{Writing R Extensions} manuals, including the section on
|
- |
|
| 83 |
\sQuote{Customizing package compilation} in the former.
|
82 |
Section \manual{R-admin}{Customizing package compilation}.
|
| 84 |
}
|
83 |
}
|
| 85 |
#ifdef unix
|
84 |
#ifdef unix
|
| 86 |
\examples{\dontrun{
|
85 |
\examples{\dontrun{
|
| 87 |
# To link against a library not on the system library paths:
|
86 |
# To link against a library not on the system library paths:
|
| 88 |
R CMD SHLIB -o mylib.so a.f b.f -L/opt/acml3.5.0/gnu64/lib -lacml
|
87 |
R CMD SHLIB -o mylib.so a.f b.f -L/opt/acml3.5.0/gnu64/lib -lacml
|