delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/18/13:52:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <001701bf910b$ab228fe0$7427d8d4@mcodat>
From: "coea" <coea77 AT tin DOT it>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Help Me!!
Date: Sat, 18 Mar 2000 19:56:24 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

------=_NextPart_000_0014_01BF9114.0A724E60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi all!!
I'm building a little project about representation of function,
and i need a parser to scan the strings i send to the main function.

using the bison program i get the followin message

bison -d Parser.y
bison.exe:bad address

i tried also to use the byacc program (for what i know is similar),
and the flex program, but this generate other problems, in fact
the compile fase was no problem, but at link time, the ld warn about
an unreferenced function "yywrap()" called by the .c files
generated by the byacc program. This function is declared as 'extern',
so i think it should be declared in some other file (generated by some
other programs)

maybe yywrap() is a function generated by bison (but bison don't want
to run)???

how to resolve the 'bad address' problem in bison??

P.S. in the makefile  i compile using g++ -D__cplusplus ..list of files

sorry for my bad english

if you can't reply me on the mail list, please write at coea77 AT tin DOT it =
first or at coea AT libero DOT it or at mcodato AT dsi DOT unive DOT it

thank you

Mattia Codato

------=_NextPart_000_0014_01BF9114.0A724E60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>hi all!!<BR>I'm building a little =
project about=20
representation of function,<BR>and i need a parser to scan the strings i =
send to=20
the main function.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>using the bison program i get the =
followin=20
message</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>bison -d Parser.y<BR>bison.exe:bad=20
address</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>i tried also to use the byacc =
program (for what=20
i know is similar),<BR>and the flex program, but this generate other =
problems,=20
in fact<BR>the compile fase was no problem, but at link time, the ld =
warn=20
about<BR>an unreferenced function &quot;yywrap()&quot; called by the .c=20
files<BR>generated by the byacc program. This function is declared as=20
'extern',<BR>so i think it should be declared in some other file =
(generated by=20
some<BR>other programs)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>maybe yywrap() is a function =
generated by bison=20
(but bison don't want<BR>to run)???</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>how to resolve the 'bad address' =
problem in=20
bison??</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>P.S. in the makefile&nbsp; i compile =
using g++=20
-D__cplusplus ..list of files</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>sorry for my bad =
english</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>if you can't reply me on the mail list, please write =
at <A=20
href=3D"mailto:coea77 AT tin DOT it">coea77 AT tin DOT it</A> first or at <A=20
href=3D"mailto:coea AT libero DOT it">coea AT libero DOT it</A> or at <A=20
href=3D"mailto:mcodato AT dsi DOT unive DOT it">mcodato AT dsi DOT unive DOT it</A></FONT></DIV=
>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thank you</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Mattia =
Codato</FONT></DIV></BODY></HTML>

------=_NextPart_000_0014_01BF9114.0A724E60--

- Raw text -


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