bug-bison
[Top][All Lists]
Advanced

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

Re: bison 2.6.2 generates incompatible header file


From: Bill Allombert
Subject: Re: bison 2.6.2 generates incompatible header file
Date: Wed, 17 Oct 2012 21:13:33 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Oct 17, 2012 at 11:00:49AM -0700, Chuan-kai Lin wrote:
> Hi,
> 
> I am forwarding this bug report by Bill Allombert from the Debian bug
> tracking system (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689700).
> Here is Bill's report:

Dear bison developers,
I realise my report was incomplete. Please find a test case in attachment.

bison 2.4.1:

bison -d parse.y
gcc -c parse.tab.c -o parse.tab.o
g++ proj.c parse.tab.o -o proj

bison 2.6.2:

bison -d parse.y
gcc -c parse.tab.c -o parse.tab.o
g++ proj.c parse.tab.o -o proj
In file included from proj.c:1:0:
parse.tab.h:62:5: error: previous declaration of ‘int yyparse()’ with ‘C++’ 
linkage
In file included from proj.c:2:0:
proj.h:4:18: error: conflicts with new declaration with ‘C’ linkage
make: *** [all] Erreur 1

Cheers,
-- 
Bill. <address@hidden>

Imagine a large red swirl here. 

Attachment: proj.tgz
Description: GNU Unix tar archive


reply via email to

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