delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/17/12:28:15

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199704171602.AA085792924@typhoon.rose.hp.com>
Subject: Re: HELP: Bison, Flex & C++ class support...
To: eklaus AT erols DOT com (Programmed to death)
Date: Thu, 17 Apr 1997 9:02:03 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <3355bec7.44451742@news.erols.com>; from "Programmed to death" at Apr 17, 97 6:27 am

> When i overide the .c extensions for lexyy.c and y_tab.c and
> compile everything as c++ code,  errors pop up that were not
> present when compiling the files as c-code.

I would try Eli's suggestion first, but in the event that that doesn't help,
perhaps try compiling (as 'C' with 'gcc -Wall -Werror ...'), I think you may 
be missing some prototypes.  My C++ knowledge is very sketchy, but perhaps 
it will work if you have extern C declarations for yyerror and such.

HTH

Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019