CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Error compiling OpenFOAM141dev on Ubuntu 710 (http://www.cfd-online.com/Forums/openfoam-bugs/62510-error-compiling-openfoam141dev-ubuntu-710-a.html)

andersking January 15, 2008 23:25

Hi, I am trying to compile
 
Hi,

I am trying to compile the development version of OF, however I keep getting this error when compiling coupledPolyPatch.C (This causes *many* problems later as finiteVolume is not built)

SOURCE=meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DWM_PROJECT_VERSION='"'1.4.1'"' -I/home/anders/OpenFOAM/OpenFOAM-1.4.1/src/zlib-1.2.1 -IlnInclude -I. -I/home/anders/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxDPOpt/coupledPolyPatch.o
lnInclude/newPointPatchField.C:36: error: expected ',' or '...' before '&' token
lnInclude/newPointPatchField.C:38: error: ISO C++ forbids declaration of 'pointPatch' with no type
lnInclude/newPointPatchField.C:38: error: invalid use of undefined type 'struct Foam::pointPatchField<type>'

Any ideas where I might be going wrong?

Cheers,
Andrew

andersking January 16, 2008 06:43

I've managed to fix it, someho
 
I've managed to fix it, somehow i merged the -dev version with the 1.4.1 release version (which includes a name change from PointPatchFields to pointPatchFields) doubly declaring some classes.

It seems to be compiling fine now.

Also, sorry for posting this in OpenFOAM-bugs, i missed the Installation topic under OpenFOAM

Cheers
Andrew


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