[Rd] Re: [R] Nothing can be pasted...

Prof Brian Ripley Prof Brian Ripley <ripley@stats.ox.ac.uk>
Thu, 28 Sep 2000 13:51:12 +0100 (BST)

> Date: Thu, 28 Sep 2000 14:28:31 +0200 (CEST)
> From: gb <gb@stat.umu.se>
> Compiling R-1.1.1 on RedHat Linux 7.0 gives lots of warnings like
> In file included from tabulate.c:24:
> ../../src/include/config.h:192:21: warning: nothing can be pasted after
> this token
> which I didn't see with RH6.2. However,  R  seems to run just fine
> nevertheless. The offending line in config.h is
> #define DYNLOADEXT  "." ## SHLIBEXT
> I'm not too familiar with  C  programming, but if ## SHLIBEXT
> is meant as a comment, shouldn't it be surrounded by /* */?

A bit more on this. I understood from PD's recent post that RH7.0 uses
gcc 2.96, even though that is not yet released accoring to the gcc site
(gcc.gnu.org) has as NEWS for Sept 11, 2000:

   Neil Booth has contributed a new lexer and macro-expander for the C
   preprocessor. The lexer makes a single pass over the source files,
   whereas previously it made two. The macro expander works without
   re-scanning for nested macros to expand, and operates on lexical tokens
   instead of text strings.

   ISO C, C++, and Objective C use the new preprocessor. Traditional (K+R)
   C, Fortran, and Chill use an older implementation (taken from GCC 1)
   which obeys the rules for pre-standard C preprocessing. Either version
   may be used to preprocess assembly language.

I wonder if this is a problem with using a beta compiler?

Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch