From vakili.kaveh.email at gmail.com  Tue Nov  4 14:37:17 2014
From: vakili.kaveh.email at gmail.com (kaveh)
Date: Tue, 04 Nov 2014 14:37:17 +0100
Subject: [Rd] Linking to the BH package introduces CRAN warnings
Message-ID: <5458D68D.3070102@gmail.com>

Dear all,

I'm working on a project that links to the BH package
(http://cran.r-project.org/web/packages/BH/index.html).

My packages doesn't call entry points which might terminate R nor
write to stdout/stderr instead of to the console.

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)


  Furthermore, these warnings disappear when remove the boost
  headers and replace the call to boost functions by constants.

Looking at the CRAN-check diagnostics of some other packages that link to
BH, I do not see similar warnings, so I suppose it is possible to fix 
this issue.
Looking at their source code, it is not clear to me how these authors have
managed to do this, but this might be because I'm not that familiar with
boost to begin with. Can someone point me to some solution to this problem?

Thanks in advance,



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