[Rd] Cannot link mypackage to 2 other packages
hpages at fhcrc.org
Sat Aug 9 04:04:01 CEST 2008
Prof Brian Ripley wrote:
> Thanks for the examples. The specific problems was a typo, but there was
> another on Windows (missing quotes).
> This should work in R-patched and R-devel on Linux and Windows now.
Yes this works now. Thanks!
> On Thu, 7 Aug 2008, Herve Pages wrote:
>> Prof Brian Ripley wrote:
>>> Somewhere on your website would be best.
>> Here they are (stub versions):
>> mypackage tries to link to packageA and packageB but this is what I get:
>> hpages at lamb1:~> R-2.8 CMD INSTALL mypackage_0.0.0.tar.gz
>> * Installing to library '/home/hpages/R-2.8/library'
>> * Installing *source* package 'mypackage' ...
>> ** libs
>> gcc -std=gnu99 -I/home/hpages/R-2.8/include -I/usr/local/include
>> -I"/home/hpages/R-2.8/library/packageA/include" -fpic -g -O2 -Wall
>> -c R_init_mypackage.c -o R_init_mypackage.o
>> In file included from R_init_mypackage.c:1:
>> mypackage.h:2:30: error: packageB_defines.h: No such file or directory
>> make: *** [R_init_mypackage.o] Error 1
>> ERROR: compilation failed for package 'mypackage'
>> ** Removing '/home/hpages/R-2.8/library/mypackage'
>> hpages at lamb1:~> gcc --version
>> gcc (GCC) 4.1.0 (SUSE Linux)
>> Copyright (C) 2006 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions. There
>> is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> hpages at lamb1:~> cat /etc/SuSE-release
>> SUSE LINUX 10.1 (X86-64)
>> VERSION = 10.1
>> I get the same on 64-bit openSUSE 10.3
More information about the R-devel