On 25 Feb 2007, at 19:47, Bob Rossi wrote:
I see the problem now. I #include OutGrammar.h into Lexer.l.
OutGrammar.h has the C++ type (std::string) information in it.
This causes a compile error when the C lexer (Lexer.c) is being
compiled. Is there a standard work around for this? I don't see any
obvious way to make Lexer.l turn into Lexer.cxx using automake.
Anyone know how?
Does file OutGrammar.h have '#include <string>' in it?
Also type std::string is template. Some compilers (particularly in
the past) may cause error if there has been no use of the type before
used as a pointer, due to poor template expansion. So then one try yo
put in a declaration of some sort.
Hans Aberg
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison