On Tuesday 16 May 2006 19:12, Vinay S Shastry wrote:
> I think its a problem with the makefile/make, because manually compiling
> works fine:
>
> flex t0.lex
> gcc -lfl -o foo lex.yy.c

Doesn't work here. Very weird.

$ flex t0.lex

$ gcc -lfl -o foo lex.yy.c
/tmp/ccDkV4GS.o: In function `main':
lex.yy.c:(.text+0x1795): multiple definition of `main'
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libfl.a(libmain.o):: first 
defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 27 
in /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libfl.a(libmain.o) to 66 
in /tmp/ccDkV4GS.o
/tmp/ccDkV4GS.o: In function `yylex':
lex.yy.c:(.text+0x3c7): undefined reference to `yywrap'
/tmp/ccDkV4GS.o: In function `input':
lex.yy.c:(.text+0xd2c): undefined reference to `yywrap'
collect2: ld returned 1 exit status

Mircea
/IceRAM

-- 
http://mircea.bardac.net

Attachment: pgpyt5RIywZeV.pgp
Description: PGP signature

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to