From ripley at stats.ox.ac.uk  Thu Aug  7 08:31:37 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 7 Aug 2008 07:31:37 +0100 (BST)
Subject: [Rd] Cannot link mypackage to 2 other packages
In-Reply-To: <20080806231422.i59dacelpgkwws8k@webmail.fhcrc.org>
References: <20080806231422.i59dacelpgkwws8k@webmail.fhcrc.org>
Message-ID: <alpine.LFD.1.10.0808070729250.18594@gannet.stats.ox.ac.uk>

What platform?

We've seen a similar report that said the problem was on Windows only.
Like this one, it had nothing to reproduce.

On Wed, 6 Aug 2008, hpages at fhcrc.org wrote:

> Hi,
>
> I need to link mypackage to 2 other packages so I can call
> some C functions defined in these 2 packages from mine.
>
> I've tried
> Depends: packageA, packageB
> LinkingTo: packageA, packageB
> as suggested by the "5.4 Registering native routines" section
> of the "Writing R Extensions" manual but then only packageA is
> seen at compilation time (gcc is called with
> -I"/some/path/to/packageA/include" only).
>
> I've also tried
> Depends: packageA, packageB
> LinkingTo: packageA
> LInkingTo: packageB
> but this time only packageB is seen at compilation time.
>
> How can I link mypackage to both packageA and packageB?
>
> Thanks!
>
> H.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Brian D. Ripley,                  ripley at 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



[Rd] Cannot link mypackage to 2 other packages
Prof Brian Ripley