help-gnubatch
[Top][All Lists]
Advanced

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

Re: [Help-gnubatch] External variables not found


From: John M Collins
Subject: Re: [Help-gnubatch] External variables not found
Date: Wed, 25 Feb 2009 09:27:39 +0000

That's weird it's declared without "extern" in msglex.l and I've not seen it not building like that anywhere else.

Were you using "lex" or "flex"?

On Wed, 2009-02-25 at 01:54 +0100, Reuti wrote:
Hi,

I always get a:

make[1]: Entering directory `/home/reuti/gnubatch-1.1/util'
gcc  -o helpparse helpparse.o msgparse.o msglex.o alloc.o
helpparse.o: In function `apphelps':
/home/reuti/gnubatch-1.1/util/helpparse.c:373: undefined reference to  
`line_count'
...(more)...

during make. All declarations of line_count (and some others) have  
"extern" AFAICS, but nowhere a real declaration. This seems only to  
be present in msgparse.y, but with bison 2.3 and also 2.4 it seems  
not to be available to the C program during linking.

How to get this working?  (SuSE Linux 10.3, gcc 4.2.1, x86)

-- Reuti


John Collins <address@hidden> Skype: toadwarbler

xisoftware
Xi Software Ltd www.xisl.com 

Tel: +44 (0)1707 886110 (Direct)
     +44 (0)7799 113162 (Mobile)

Registered in England & Wales Company Number 1977148 VAT: GB 403 9239 64

Trading Address: 3 Mandeville Rise, Welwyn Garden City, Herts, AL8 7JT, UK
Reg Office: 2 Mill Road, Haverhill, Suffolk, CB9 8BD, UK


reply via email to

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