From MGansser@rand.de  Mon Jul  8 16:04:24 2002
From: MGansser@rand.de (Gansser, Martin)
Date: Mon, 8 Jul 2002 17:04:24 +0200
Subject: compilation breaks with gnome support on hp-ux 11.00 (PR#1757)
Message-ID: <78224A6821F87A4D8023B133E5B1140B013E87@srvmxellwangen2.ratc-de.com>


> 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

occurs only, if CC=cc (HP C compiler) is set, not with CC=gcc
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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