From hpages at fhcrc.org  Thu Aug  7 08:14:22 2008
From: hpages at fhcrc.org (hpages at fhcrc.org)
Date: Wed, 06 Aug 2008 23:14:22 -0700
Subject: [Rd] Cannot link mypackage to 2 other packages
Message-ID: <20080806231422.i59dacelpgkwws8k@webmail.fhcrc.org>

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.



[Rd] Cannot link mypackage to 2 other packages
hpages at fhcrc.org