|
[Sponsors] |
October 10, 2006, 12:24 |
Is there any reason for using
|
#1 |
New Member
Alexander Lelyakin
Join Date: Mar 2009
Location: Germany
Posts: 2
Rep Power: 0 |
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. |
|
October 11, 2006, 07:14 |
Sorry, I was not right.
fle
|
#2 |
New Member
Alexander Lelyakin
Join Date: Mar 2009
Location: Germany
Posts: 2
Rep Power: 0 |
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? |
|
October 11, 2006, 07:23 |
Easy: standard flex does not c
|
#3 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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 |
|
|
|
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 |