From hpages at fhcrc.org  Sat Aug  9 04:04:01 2008
From: hpages at fhcrc.org (Herve Pages)
Date: Fri, 08 Aug 2008 19:04:01 -0700
Subject: [Rd] Cannot link mypackage to 2 other packages
In-Reply-To: <alpine.LFD.1.10.0808081903220.17538@gannet.stats.ox.ac.uk>
References: <20080806231422.i59dacelpgkwws8k@webmail.fhcrc.org>
	<alpine.LFD.1.10.0808070729250.18594@gannet.stats.ox.ac.uk>
	<20080806234710.vhxoxds34s0k0g44@webmail.fhcrc.org>
	<alpine.LFD.1.10.0808070809480.29441@gannet.stats.ox.ac.uk>
	<489B29B0.8090509@fhcrc.org>
	<alpine.LFD.1.10.0808081903220.17538@gannet.stats.ox.ac.uk>
Message-ID: <489CFB11.5040909@fhcrc.org>

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.
>>
>



[Rd] Cannot link mypackage to 2 other packages
Herve Pages