bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with check for const in autoconf 2.13


From: Luca Berra
Subject: problem with check for const in autoconf 2.13
Date: Sat, 20 Jan 2001 11:19:02 +0100
User-agent: Mutt/1.2.5i

hello.
(i post here cause gnats does not work with lynx)
i found a configure script saying i have a non-working const,
i tracked the error down to autoheader.m4f, line 974
which reads
typedef int charset[2]; const charset x;

both egcs and gcc 2.95.2 reject this with:
"uninitialized const `x'", which seems a sensible thing to do for
a C++ compiler.

changing the line to read
typedef int charset[2]; const charset x = {0, 0};

works

regards.
Luca

-- 
Luca Berra -- address@hidden
    PGP/GPG Public keys available via keyservers
         DSA: DA24 D16D 05FE A144 7762  BAF8 9307 A167 64C6 3A61
 /"\     ElG: 0429 0E81 F546 A3F5 726A  4789 802B 3464 48DF A653
 \ /     RSA: 6E 85 91 CA 4D 3B 36 2D  7F DB B1 39 D8 99 CC E6
  X
 / \  ASCII RIBBON CAMPAIGN AGAINST HTML MAIL 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]