This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Hello!!!
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: Hello!!!
- From: "ÁÖ¸®¾Æ" <riaju at hanmail dot net>
- Date: Wed, 14 Feb 2001 19:21:13 KST
- Organization: °æºÏ´ëÇб³
- Reply-To: "ÁÖ¸®¾Æ" <riaju at hanmail dot net>
Dear Mr.
Hello!!!
I am student of Kyungpook National University in Korea.
When I complied in gcc2.95.2, occured error below.
O.S. is linux
flex.skl version is 2.91.96
> lex -l -t lex.l>lex.c
> gcc -c -g lex.c
lex.l: In function `yylex':
lex.l:50: `yytchar' undeclared (first use in this function)
lex.l:50: (Each undeclared identifier is reported only once
lex.l:50: for each function it appears in.)
lex.l:50: `yysptr' undeclared (first use in this function)
lex.l:50: `yysbuf' undeclared (first use in this function)
lex.l: At top level:
lex.l:551: parse error before `='
lex.l:556: conflicting types for `yy_c_buf_p'
lex.c:219: previous declaration of `yy_c_buf_p'
lex.l:556: warning: initialization makes pointer from integer without a cast
lex.l:556: initializer element is not constant
lex.l:556: warning: data definition has no type or storage class
lex.l:558: parse error before `if'
lex.l:612: initializer element is not constant
lex.l:612: warning: data definition has no type or storage class
lex.l:613: redefinition of `yy_c_buf_p'
lex.l:556: `yy_c_buf_p' previously defined here
lex.l:613: warning: data definition has no type or storage class
lex.l:614: conflicting types for `yy_hold_char'
lex.c:211: previous declaration of `yy_hold_char'
lex.l:614: initializer element is not constant
lex.l:614: warning: data definition has no type or storage class
lex.l:616: parse error before `->'
lex.l: In function `yy_switch_to_buffer':
lex.l:653: warning: assignment from incompatible pointer type
lex.l: In function `yy_load_buffer_state':
lex.l:676: warning: assignment from incompatible pointer type
lex.l:676: warning: assignment from incompatible pointer type
in lex.l file.
#define input() ((((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin)),downshift(yytchar))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)
yysptr, yysbuf, yytchar is function of lex ?
Please send response!!!
Thank you.
==================================================
ÁÖ¸®¾Æ¿©¿ä
==================================================
¿ì¸® ÀÎÅͳÝ, Daum
Æò»ý ¾²´Â ¹«·á E-mail ÁÖ¼Ò ÇѸÞÀϳÝ
Áö±¸ÃÌ ÇÑ±Û °Ë»ö¼ºñ½º Daum FIREBALL
http://www.daum.net