compilation breaks with gnome support on hp-ux 11.00 (PR#1757)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
08 Jul 2002 16:18:52 +0200


mgansser@rand.de writes:

> cc: "system-showfiles.c", line 271: error 1502: Array size must be a constant
> expression.
> gmake[4]: *** [system-showfiles.lo] Error 1
> 
> gnome-1.4 for hpux 11.00
> PS: R-1.5.1 compiles fine w/o gnome support

Hmm:

  const gint bufsize = 2048;
  gchar buf[bufsize];

is the culprit, so a quick fix should be obvious (just use #define
instead). But is this usage of "const" variables an un-ANSI C
extension in GCC, or is it the HP C compiler that is to blame??

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._