|
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 mg_out_dev.cc; \ then mv -f ".deps/mg_out_dev.Tpo" ".deps/mg_out_dev.Po"; else rm -f ".deps/mg_out_dev.Tpo"; exit 1; fi mg_out_dev.cc: In function `std::string fix_expression(const std::string&)': mg_out_dev.cc:336: error: type specifier omitted for parameter `in'
Hi,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 http://www.csl.cornell.edu/~fang/ -- (2400 baud? Netscape 3.0?? lynx??? No problem!)
[Prev in Thread] | Current Thread | [Next in Thread] |