|
From: | David Fang |
Subject: | Re: [Gnucap-devel] Build failure with version 2007-08-20 |
Date: | Sat, 25 Aug 2007 18:51:31 -0400 (EDT) |
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 interpretsCS x(CS_STRING(), in); as a function declaration.
Try this patch (attached), which addresses the same problem in other files.
in "ap.h", if you use the "extern const" variant of the path, you'll probably want to define those _CS_* objects in some translation unit, if you don't want to assume that references to them will be optimized away.
BTW, src/ap.h and modelgen/ap.h are identical (same patch applied to both), and since modelgen builds with -I $(top_srcdir)/src, modelgen's copy can probably be removed to avoid confusion.
David Fang Computer Systems Laboratory Electrical & Computer Engineering Cornell University http://www.csl.cornell.edu/~fang/ -- (2400 baud? Netscape 3.0?? lynx??? No problem!)
gnucap-2007-08-20.patch
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |