Article View: gnu.gcc.help
Article #50044GCC 2.5.3 and libg++ 2.5.1 (gperf list-node.cc)
From: John Boller
Date: Thu, 18 Nov 1993 16:17
Date: Thu, 18 Nov 1993 16:17
33 lines
1535 bytes
1535 bytes
Hi,
OS & Machine: NextStep 3.1, NextStation B&W (m68k-next-bsd)
I had trouble compiling gperf in libg++ 2.5.1 with
GCC 2.5.3.
the error was as follows:
--------------------------------
gcc -c -g -O -nostdinc++ -I. -I../../../libio -I. -I./../../../libio
-I./../../s
rc list-node.cc
list-node.cc:59: macro `index' used with just one arg
*** Exit 1
Stop.
--------------------------------
My fix was to change the code from line 59-61
PRE-FIX
=======
List_Node::List_Node (char *k, int len): key (k), next (0), index (0),
length (len), link (0), rest (option[TYPE] ? k + len + 1 : "")
{
T (Trace t ("List_Node::List_Node");)
POST-FIX
========
List_Node::List_Node (char *k, int len): key (k), next (0), //JMB
length (len), link (0), rest (option[TYPE] ? k + len + 1 : "")
{
index=0; //JMB
T (Trace t ("List_Node::List_Node");)
Technical Details
Message-ID:
<9311181110.ZM493@is.morgan.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!morgan.COM!jbollerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fadb9dab5a6c6b0f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-18 08:57:28 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!morgan.COM!jboller From: jboller@morgan.COM (John Boller) Newsgroups: gnu.gcc.help Subject: GCC 2.5.3 and libg++ 2.5.1 (gperf list-node.cc) Date: 18 Nov 1993 11:17:17 -0500 Organization: GNUs Not Usenet Lines: 35 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9311181110.ZM493@is.morgan.com>