Re: [Rd] C++ complains abouct Rprintf signature

2008-04-16 Thread Prof Brian Ripley
Please see the posting guide: For questions about unexpected behavior or a possible bug, you should, at a minimum, copy and paste the output from sessionInfo() into your message. ... If you are using an old version of R and think it does not work properly, upgrade to the latest vers

[Rd] C++ complains abouct Rprintf signature

2008-04-16 Thread Vadim Organovich
Dear R-devel, My g++ complains about the first argument to Rprintf being non-const char *. For example when compiling the line Rprintf("hello world\n"); the following warning is emitted: warning: deprecated conversion from string constant to 'char*' Is there a reason for the non-const? It is