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

Flex vs foamFlex

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2006, 12:24
Default Is there any reason for using
  #1
lel
New Member
 
Alexander Lelyakin
Join Date: Mar 2009
Location: Germany
Posts: 2
Rep Power: 0
lel is on a distinguished road
Is there any reason for using flex version 2.4.5
and not some modern version of flex installed in the system anyway?

I tried to use system flex (2.5.31). It compiles without problem.

To do that it is necessary eliminate shipped
FlexLexer.h from lnInclude which is not obvious thing.
lel is offline   Reply With Quote

Old   October 11, 2006, 07:14
Default Sorry, I was not right. fle
  #2
lel
New Member
 
Alexander Lelyakin
Join Date: Mar 2009
Location: Germany
Posts: 2
Rep Power: 0
lel is on a distinguished road
Sorry, I was not right.

flex++ installed in in my system (ubuntu-6.06)
cannot compile all .L files in OpemFOAM.
More precise - output from flex++ cannot be compiled by g++

There are two types of error messages:
- duplicate class definition
- absence of 'main' on link stage

However it is still interresting what is so special in OpenFOAM that it cannot use standard flex++ and should use patched version of it?
lel is offline   Reply With Quote

Old   October 11, 2006, 07:23
Default Easy: standard flex does not c
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Easy: standard flex does not conform with the C++ standard and the new compilers refuse to work with it. Also, I got annoyed with the warnings about using non-standard headers etc and this got fixed as well.

Note that flex needs to produce a proper code for later compilation, so adherence to standard is really important. At the same time (the last time I've looked), nobody is giving flex the attention it needs.

(if you want something done properly, you end up doing it yourself) :-)
Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Flex and readSTLASCIIL podallaire OpenFOAM Installation 2 June 1, 2010 18:00
What is the difference between flex and foamFlex allenzhao OpenFOAM Installation 1 August 14, 2008 18:17
Problem wih Compiling under Tru64 foamFlex matthias OpenFOAM Installation 2 December 1, 2005 06:36
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 16:09.