Re: [Rd] forcing R CMD COMPILE

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 23 Mar 2005 - 17:05:22 GMT

On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote:

>
> On Wed, 23 Mar 2005, Prof Brian Ripley wrote:
>
>> On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote:
>>
>>> I am developing a package with a lot of C++ code, and I have a question
>>> about R CMD COMPILE. As I can see, when the package's Makefile calls
>>>
>>> R CMD COMPILE foo.cpp
>>
>> Why does your package have a Makefile? And why is it calling COMPILE and
>> not SHLIB?
>>
>
> My package has a Makefile because I need to compile 16 .cpp files. After
> it, I call R CMD SHLIB.

R CMD SHLIB would do that for you. Many packages using multiple .cpp files have no Makefile. Please study the many examples on CRAN.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Mar 24 04:25:50 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:02 GMT