OpenFOAM v2306 gives YY_BUF_SIZE declare in scope error
I'm trying to compile openfoam v2306 on Centos 7.9 and I got YY_BUF_SIZE declare in scope error. Compiling process is attached to issue.compiling_openfoam_v2306.txt
I'm trying to compile openfoam v2306 on Centos 7.9 and I got YY_BUF_SIZE declare in scope error. Compiling process is attached to issue.compiling_openfoam_v2306.txt
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
There was an error about ADIOS2 compiling too, on this github issue https://github.com/ornladios/ADIOS2/issues/3742, they fix the error. Maybe this is about OpenFoam compiling too.
This looks like a non-standard configuration. AFIAK centos-7 still had gcc-4.8.5 and a much older flex. Are your flex headers consistent with the flex version?
You have:
flex=/beegfs/apps/flex/2.6.4/bin/flex
But is the compilation using flex getting the proper FlexLexer.h
?
Find where the FlexLexer.h corresponding to your particular flex version is located.
added community label
Closing out. Seems to be a local configuration issue and there has been no further user response.
closed