CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   switch.H errors (http://www.cfd-online.com/Forums/openfoam-installation/77683-switch-h-errors.html)

mirko June 30, 2010 12:24

switch.H errors
 
Hello,

I am trying to install simpleViewer to preview the blockMesh geometry. That would help me understand the geometries in the tutorials.

I installed the fox toolkit, and during the simpleViewere installation, I get the following error from an OF1.6 file:

Code:

...
In file included from /home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Time.H:49,
                from /home/sm/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:6,
                from FXGLCurvedLine.H:38,
                from FXGLCurvedLine.C:45:
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H: At global scope:
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H:79: error: expected identifier before numeric constant
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H:79: error: expected `}' before numeric constant
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H:79: error: expected unqualified-id before numeric constant
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H:92: error: ‘INVALID’ was not declared in this scope
/home/sm/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Switch.H:98: error: ‘switchType’ does not name a type
... etc.

I have installed OF binary distribution (i.e. did not build OF myself), and the gcc in my path is OF's:

> gcc --version
gcc (OpenFOAM) 4.3.3


I suspect I am missing (messing) something, but what?

Thanks,

Mirko

mvoss November 25, 2010 08:11

hi,

i am facing the exact same problem here. did you found a solution?

neewbie

mirko November 30, 2010 10:58

Unfortunately no :-(


All times are GMT -4. The time now is 14:59.