[Top][All Lists]

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

Re: [Gnucap-devel] Build failure with version 2007-08-20

From: David Fang
Subject: Re: [Gnucap-devel] Build failure with version 2007-08-20
Date: Sat, 25 Aug 2007 16:26:36 -0400 (EDT)

I decided to play around with the latest Gnucap snapshot,
gnucap-2007-08-20.  I did the usual "configure && make" incantation.
However, the build fails with this message:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src  -DNDEBUG  -g -O2 -MT
mg_out_dev.o -MD -MP -MF ".deps/mg_out_dev.Tpo" -c -o mg_out_dev.o; \
then mv -f ".deps/mg_out_dev.Tpo" ".deps/mg_out_dev.Po"; else rm -f
".deps/mg_out_dev.Tpo"; exit 1; fi In function `std::string fix_expression(const
std::string&)': error: type specifier omitted for parameter `in'


I can reproduce this with all the g++-3.3 compilers I've tried, it seems to be an old parser bug that interprets

        CS x(CS_STRING(), in);

as a function declaration.
A workaround is:

        static const CS_STRING _CSS = CS_STRING();
        CS x(_CSS, in);

Looks like g++-3.3 has more compiling issues throughout the source. Let us/me know if you need help patching them up.

David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
        -- (2400 baud? Netscape 3.0?? lynx??? No problem!)

reply via email to

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