Re: [Rd] Cannot link mypackage to 2 other packages

From: Herve Pages <hpages_at_fhcrc.org>
Date: Fri, 08 Aug 2008 19:04:01 -0700

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!

H.

> 
> On Thu, 7 Aug 2008, Herve Pages wrote:
> 

>> Prof Brian Ripley wrote:
>> [...]
>>>
>>> Somewhere on your website would be best.
>>
>> Here they are (stub versions):
>>
>> http://bioconductor.org/packages/misc/
>>
>> 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
>> PURPOSE.
>>
>> 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
>>
>> Thanks!
>>
>> H.
>>

>

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 09 Aug 2008 - 02:06:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Aug 2008 - 02:36:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive