CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compilation problem (http://www.cfd-online.com/Forums/openfoam-solving/57920-compilation-problem.html)

antonio_ing February 15, 2009 07:55

i have decided to open a new t
 
i have decided to open a new thread. To my openfoam-1.5 dev of 20/01/09 i did wclean in the icoFoam directory and once i did wmake again I got the following error:

+ wmake
Making dependency list for source file icoFoam.C
SOURCE=icoFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/icoFoam.o
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:47,
from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from icoFoam.C:33:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/cpuTime.H:4:3 3: error: asm-generic/cputime.h: No such file or directory
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from icoFoam.C:33:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:68: error: expected class-name before ',' token
icoFoam.C: In function 'int main(int, char**)':
icoFoam.C:103: error: 'class Foam::Time' has no member named 'elapsedCpuTime'
make: *** [Make/linuxGccDPOpt/icoFoam.o] Error 1
any suggestion?

mbeaudoin February 15, 2009 11:04

What is the output of these 3
 
What is the output of these 3 commands?

> which g++

> g++ --version

> cd $WM_PROJECT_DIR; svn info


And what Linux distro are you using?

Martin

antonio_ing February 15, 2009 12:00

1) /usr/bin/g++ 2) g++ (U
 
1)
/usr/bin/g++

2)
g++ (Ubuntu 4.3.2-1ubuntu12) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

3)
The program 'svn' is currently not installed. You can install it by typing:
sudo apt-get install subversion
-bash: svn: command not found

actually i am using ubuntu 8.10

antonio_ing February 17, 2009 06:38

i finally managed to solve the
 
i finally managed to solve the problem compiling again openfoam-dev from scratch. In the installation section there is my post about the openfoam-1.5-dev installation to everybody. Thanks for all the help guys

haghajani February 22, 2009 17:46

Hi everybody, I added H2 Fo
 
Hi everybody,

I added H2 Folder/Class to the existing liquid library of openFoam-1.5 . I
tried to compile as http://openfoamwiki.net/index.php/Co...ropertiesLiqui d, but many errors, saying,
..
/user/lib/../lib64/crt1.o: in function `_start`: (.text+0x20):
undefined reference to `main'
Make/linux64GccDpOpt/H2O.o: In function
`Foam::thermophysicalFunction::type() const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::thermophysicalFunction::typ e() const]+0x3) : undefined reference to `Foam::thermophysicalFunction::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc0::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam10NSRDSFunction04typeEv[Foam::NSRDSfunc0::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc0::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc1::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22NSRDSfunction14typeEv[Foam::NSRDSfunc1::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc1::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc2::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc2::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc2::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc4::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc4::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc4::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc5::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc5::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc5::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc6::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc6::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc6::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc7::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc7::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc7::typeName'
..
Any suggestion?
Hamed

haghajani February 22, 2009 17:49

Hi everybody, I added H2 Fo
 
Hi everybody,

I added H2 Folder/Class to the existing liquid library of openFoam-1.5 . I
tried to compile as http://openfoamwiki.net/index.php/Co...ropertiesLiqui d, but many errors, saying,
..
/user/lib/../lib64/crt1.o: in function `_start`: (.text+0x20):
undefined reference to `main'
Make/linux64GccDpOpt/H2O.o: In function
`Foam::thermophysicalFunction::type() const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::thermophysicalFunction::typ e() const]+0x3) : undefined reference to `Foam::thermophysicalFunction::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc0::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam10NSRDSFunction04typeEv[Foam::NSRDSfunc0::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc0::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc1::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22NSRDSfunction14typeEv[Foam::NSRDSfunc1::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc1::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc2::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc2::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc2::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc4::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc4::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc4::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc5::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc5::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc5::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc6::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc6::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc6::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc7::type()
const':
H2O.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc7::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc7::typeName'
..
Any suggestion?
Hamed


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