From vakili.kaveh.email at gmail.com  Wed Nov  5 00:15:11 2014
From: vakili.kaveh.email at gmail.com (kaveh)
Date: Wed, 05 Nov 2014 00:15:11 +0100
Subject: [Rd] Linking to the BH package introduces CRAN warnings
In-Reply-To: <21593.22718.944171.419082@max.nulle.part>
References: <5458D68D.3070102@gmail.com>	<21592.58816.359652.109459@max.nulle.part>	<0CDE01C7-C290-4CB8-A1ED-B2A8816CBA49@r-enthusiasts.com>	<CABdHhvEiGiXAYymj4Fw2BTMw7Jq+BHBu0q=CR6kCRXYFph2VKw@mail.gmail.com>	<54595506.7000706@gmail.com>
	<21593.22718.944171.419082@max.nulle.part>
Message-ID: <54595DFF.6080101@gmail.com>

Sire,

The header that is included is

boost/math/distributions/

If I remove it and replace the calls
to its members by plain constants,
the warning disappear (I just tried
this again on http://win-builder.r-project.org/).

This leads me to the suspicion that
the header is causing the error message.

I will post a simpler source code,
tomorrow on this list.

Best regards,


On 2014-11-04 23:52, Dirk Eddelbuettel wrote:
> Gentlemen,
>
> On 4 November 2014 at 23:36, kaveh wrote:
> | Dear Hadley,
> |
> | Thank you for this information, maybe the CRAN gods
> | will look favourably on this case too,
>
> You seemed to have missed a point my earlier email tried to stress: Inclusion
> of BH does not lead to the warning.
>
> All this depends on WHICH headers are included, and the OP will need to sort
> this out by modifying his code.
>
> Dirk
>   
> | Best regards,
> |
> | On 2014-11-04 23:32, Hadley Wickham wrote:
> | >>> | However, it seems some of the codes in the BH package
> | >>> | might. At any rate, when I include some boost headers such as
> | >>> | boost/math/distributions/ through BH, I get the following warnings
> | >>> |   when  submitting to the win-builder page:
> | >>> |
> | >>> |
> | >>> |    Found '_ZSt4cerr', possibly from 'std::cerr' (C++)
> | >>> |
> | >>> |    Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
> | >>> |
> | >>> |    Found '_ZSt4cerr', possibly from 'std::cerr' (C++)
> | >>> |
> | >>> |    Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
> | >> You?re kind of out of luck. These functions are both:
> | >>   - used by the boost headers
> | >>   - forbidden by R, well at least forbidden by CRAN
> | > Maaaaybe - I had this note in RSQLite, and CRAN seemed ok with my explanation:
> | >
> | > * checking compiled code ... NOTE
> | >    File ?/Users/hadley/Documents/databases/RSQLite.Rcheck/RSQLite/libs/RSQLite.so?:
> | >      Found ?___stderrp?, possibly from ?stderr? (C)
> | >        Object: ?sqlite-all.o?
> | >
> | >    This is in C code from the embedded SQLite database.
> | >
> | >
> | > Hadley
> | >
> |
>



[Rd] Linking to the BH package introduces CRAN warnings
kaveh