error with flex

César M <[email protected]>
Newsgroups gmane.comp.lex.flex.general
Message-ID <[email protected]>
I had solved this problem like this

At the beginning of the .l file (flex file)

%option noyywrap

My entire lex file is:

%option noyywrap
number    [0-9]+\.?|[0-9]*\.[0-9]+
%%
[ ]       { /* skip blanks */ }
{number}  { sscanf(yytext, "%lf", &yylval);
            return NUMBER; }
\n|.      { return yytext[0]; }

César

http://countdown2000.3a2.com

-----Original Message-----
From: [email protected]
[[email protected]">mailto:[email protected] On Behalf
Of Jittinan Suwanruangsri
Sent: 04 Aralık 2004 Cumartesi 21:10
To: [email protected]
Subject: error with flex


Today I have used flex to generate lexer so I got c code and I have compiled 
it with Borland c++ compiler it notified my error like I have attatched a 
picture to you. It look like

"Unresolved external "_yywrap""

then I try to compile it again with Microsoft Visual c++ 6 and I got same 
result as before.I think I don't write this c code by my self but it 
generated from flex  a code should correct my code doesn't has this 
Identifier and I search this string in to c code generated from flex I don't 
found it too.

I think may I have done something wrong but I don't know what?  Can you give 
me some advices?
Now I am hurry because this is my homework and I have to finish it this 
week.

  * If you cann't contact me please send to [email protected]

                                         Please reply me
                                                 Thank.........

_______________________________________________
Help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.