Re: Compiling breve using Mingw

jon klein <[email protected]> Fri, 22 Jul 2005 11:45:30 -0400
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On Jul 21, 2005, at 7:17 PM, Thies Pfeiffer wrote:

> Hi,
>
> I am currently trying to compile breve using mingw under WindowsXP
> and I am stuck with the following errors during linking:
> undefined reference to `lineno'
> undefined reference to `yyfile'
>
> Must be some parsing stuff, but I cannot find where these definitions
> should come from. Pretty ugly extern definition stuff. Is it from  
> yacc?
> I am using bison/flex and they do not have the functions... Or am I
> missing something?
>
> I am using the breve 2.2 packaged sources.
>
> Would be glad for any ideas...
>
> Yours,
> Thies

I haven't compiled on MinGW in quite some time, but I don't know of  
anything
that's changed that would cause problems.

yyfile and lineno are defined in the flex file steve/stevelex.l.  They
are referenced from the bison file steve/steveparse.y as extern  
variables.
I can't really imagine why there would be a problem with this though,
especially if other symbols generated from stevelex.l are being found
(namely yylex).

You might want to inspect the flex generated file steve/stevelex.c to  
make
sure that the variables are in fact getting defined there, or use "nm"
on the object file stevelex.o to see if the symbols are ending up in  
there.

- jon klein
_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve