This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Hello!!!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]