CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Flex and readSTLASCIIL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2009, 12:02
Default Good morning, I'm experienc
  #1
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
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
podallaire is offline   Reply With Quote

Old   May 27, 2010, 13:22
Default
  #2
Member
 
kshitij neroorkar
Join Date: Mar 2009
Location: Michigan, USA
Posts: 32
Rep Power: 17
kdneroorkar is on a distinguished road
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 is offline   Reply With Quote

Old   June 1, 2010, 18:00
Default hi
  #3
Member
 
kshitij neroorkar
Join Date: Mar 2009
Location: Michigan, USA
Posts: 32
Rep Power: 17
kdneroorkar is on a distinguished road
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
kdneroorkar is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between flex and foamFlex allenzhao OpenFOAM Installation 1 August 14, 2008 18:17
OpenFOAM 14 problem with file readSTLASCIIL mbeaudoin OpenFOAM Bugs 2 April 13, 2007 22:09
Flex vs foamFlex lel OpenFOAM Installation 2 October 11, 2006 07:23
Flex License Borrowing Henry Oxted Main CFD Forum 5 March 23, 2005 17:59
vig-o-flex lipovetzky leonid Main CFD Forum 0 October 6, 1998 11:48


All times are GMT -4. The time now is 12:54.