CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Flex and readSTLASCIIL (http://www.cfd-online.com/Forums/openfoam-installation/57204-flex-readstlasciil.html)

podallaire March 8, 2009 12:02

Good morning, I'm experienc
 
Good morning,

I'm experiencing some issues when compiling 1.5.x on Linux using gcc-4.3.1 (or gcc-4.3) with flex 2.5.35 :

triSurface/interfaces/STL/readSTLASCII.L:60: error: no 'int yyFlexLexer::yywrap()' member function declared in class 'yyFlexLexer'
lex.yy.cc: In member function 'int STLLexer::lex()':
lex.yy.cc:5526: error: 'yy_buffer_stack' was not declared in this scope
lex.yy.cc:5526: error: 'yy_buffer_stack_top' was not declared in this scope
lex.yy.cc:5527: error: 'yyensure_buffer_stack' was not declared in this scope
lex.yy.cc:5549: warning: use of old-style cast
lex.yy.cc:5549: warning: use of old-style cast
lex.yy.cc:5565: warning: use of old-style cast
lex.yy.cc:5779: warning: use of old-style cast
lex.yy.cc:5785: error: 'yy_buffer_stack' was not declared in this scope
lex.yy.cc:5785: error: 'yy_buffer_stack_top' was not declared in this scope
lex.yy.cc:5808: error: 'yy_buffer_stack' was not declared in this scope
lex.yy.cc:5808: error: 'yy_buffer_stack_top' was not declared in this scope
...

I had similar issues with the old flex version 2.5.4 and that is why I ent with flex 2.5.35 / anybody has an idea ? I found
similar posts but nothing seems to help here. It looks that readSTLASCII.L already included the modifications proposed.

Best regards,

PO

kdneroorkar May 27, 2010 12:22

Hi
I am also getting this same error while compiling OF1.5-dev. Were you able to find a solution to this ?
Regards
Kshitij

kdneroorkar June 1, 2010 17:00

hi
 
I think I figured it out. This happens when you have a local install of flex
you need to modify the options file in triSurface/Make to point to the location where FlexLexer.h file is stored. The function yywrap() is defined in this header file.
Kshitij


All times are GMT -4. The time now is 01:24.