CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Error compiling OpenFOAM141dev on Ubuntu 710

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2008, 23:25
Default Hi, I am trying to compile
  #1
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
andersking is on a distinguished road
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
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   January 16, 2008, 06:43
Default I've managed to fix it, someho
  #2
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
andersking is on a distinguished road
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
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling error quansp OpenFOAM Installation 1 April 20, 2009 08:37
Errors when Compiling UDF: error C2040/error C2099 Julian K. FLUENT 1 December 21, 2008 01:23
compiling udf error help venkatesh4386@gmail.com FLUENT 1 November 7, 2008 03:20
Errors with surfactantFoam While Compiling OpenFOAM141dev from extends chegdan OpenFOAM Installation 1 July 3, 2008 22:10
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49


All times are GMT -4. The time now is 16:24.