[Rd] Linking to the BH package introduces CRAN warnings

kaveh vakili.kaveh.email at gmail.com
Tue Nov 4 14:37:17 CET 2014

Dear all,

I'm working on a project that links to the BH package

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,

More information about the R-devel mailing list