tsp-devel
[Top][All Lists]
Advanced

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

[Tsp-devel] tsp_ascii_writer_config.lex compile problem


From: Frederik Deweerdt
Subject: [Tsp-devel] tsp_ascii_writer_config.lex compile problem
Date: Mon, 26 Mar 2007 09:30:56 +0000
User-agent: mutt-ng/devel-r804 (Linux)

Hi,

$ bison --version
bison (GNU Bison) 2.3
$ flex --version
flex 2.5.33
$ gcc --version
gcc (GCC) 4.1.2

The build fails with the following error:
/home/def/Prog/tsp/src/consumers/ascii_writer/tsp_ascii_writer_config.lex:44: 
error: conflicting types for 'yytext'
/home/def/Prog/tsp/src/consumers/ascii_writer/tsp_ascii_writer_config_yy.c:507: 
error: previous declaration of 'yytext' was here
/home/def/Prog/tsp/src/consumers/ascii_writer/tsp_ascii_writer_config_yy.c: In 
function 'yylex':

It seems that yytext should be declared as follows:
extern char yytext[];
instead of 
extern char *yytext;

I had the fix pushed, but I wondered if it would affect some systems out
there, so I've reverted it. Any thoughts?

Regards,
Frederik




reply via email to

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