CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Trisurface compilation error (http://www.cfd-online.com/Forums/openfoam-installation/57375-trisurface-compilation-error.html)

nishant_hull April 27, 2008 22:50

I have got the following error
 
I have got the following error while recompiling using wmake in trisurface directory:
SOURCE=triSurface/interfaces/STL/readSTL.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/caelinux/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/readSTL.o
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/linuxGccDPOpt/readSTLASCII.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/caelinux/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/readSTLASCII.C -o Make/linuxGccDPOpt/readSTLASCII.o
/bin/sh: flex++: command not found
mv: cannot stat `lex.yy.cc': No such file or directory
g++: Make/linuxGccDPOpt/readSTLASCII.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/readSTLASCII.o] Error 1


Similar error is coming when I am compiling finiteVolume directory of the source. Can anybody comment?
regards,
nishant

dmoroian April 28, 2008 02:26

Hello Nishant, I think your p
 
Hello Nishant,
I think your problem (/bin/sh: flex++: command not found) is encountered very frequently on this forum. The answer is always the same:
install flex++
Dragos

nishant_hull April 28, 2008 11:34

Thanks Dragos, In fact I h
 
Thanks Dragos,

In fact I have flex++ already installed. I can see this at /usr/bin/flex++
[343880@w191-210 Desktop]$ whereis flex++
flex++: /usr/bin/flex++ /usr/share/man/man1/flex++.1.gz


Do I need to make any link for flex++ to some other location? Please suggest.

Nishant

mss May 29, 2008 04:10

Hi Nishant, Did you solve t
 
Hi Nishant,

Did you solve the problem with flex++

Best regards,
Rita


All times are GMT -4. The time now is 11:42.