[Flex-help] Help for resolve this ERROR
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Norma A. S. De I. <nor...@ho...> - 2010-04-10 00:49:34
|
Hi, I am trying compiling the Flex examples which come in the package flex-2.5.35.tar.bz2, but when I run the following command I am getting this ERROR with "ld" linux-iy0v:/home/ANGIE/flex-2.5.35/examples/manual # make -f Makefile.examples myname flex -i -I myname.lex gcc -g lex.yy.c -o myname -ll /usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -ll collect2: ld returned 1 exit status make: *** [myname] Error 1 Si yo elimino la opción -ll yo obtengo el siguiente ERROR linux-iy0v:/home/ANGIE/flex-2.5.35/examples/manual # make -f Makefile.examples myname flex -i -I myname.lex gcc -g lex.yy.c -o myname /usr/lib/gcc/i586-suse-linux/4.3/../../../crt1.o: In function `_start': /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main' /tmp/ccd11aKl.o: In function `yylex': /home/ANGIE/flex-2.5.35/examples/manual/lex.yy.c:841: undefined reference to `yywrap' /tmp/ccd11aKl.o: In function `input': /home/ANGIE/flex-2.5.35/examples/manual/lex.yy.c:1176: undefined reference to `yywrap' collect2: ld returned 1 exit status make: *** [myname] Error 1 Could someone help me to resolve this ERROR. Thanks in advance for your kindly and soon response. Regards Norma _________________________________________________________________ ¿Te crees fan de Messenger? Compruébalo www.vivirmessenger.com |