|
[Sponsors] |
January 24, 2011, 18:06 |
trouble compiling an OF BC
|
#1 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Hello,
I am building a boundary condition based on oscillatingFixedValue. I started off by copying oscillatingFixedValue in my local directory. Unfortunately, it does not compile. This is what I did so far:
Code:
Making dependency list for source file oscillatingFixedValue/oscillatingFixedValueFvPatchFields.C SOURCE=oscillatingFixedValue/oscillatingFixedValueFvPatchFields.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/oscillatingFixedValueFvPatchFields.o g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/oscillatingFixedValueFvPatchFields.o -L/opt/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ -lOpenFOAM -liberty -ldl -lm -o OpenFOAM.out /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' Make/linux64GccDPOpt/oscillatingFixedValueFvPatchFields.o: In function `global constructors keyed to oscillatingFixedValueFvPatchFields.C': oscillatingFixedValueFvPatchFields.C:(.text+0x1217): undefined reference to `Foam::fvPatchField<double>::constructpatchConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x1232): undefined reference to `Foam::fvPatchField<double>::patchConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x1255): undefined reference to `Foam::fvPatchField<double>::constructpatchMapperConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x1270): undefined reference to `Foam::fvPatchField<double>::patchMapperConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x1293): undefined reference to `Foam::fvPatchField<double>::constructdictionaryConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x12ae): undefined reference to `Foam::fvPatchField<double>::dictionaryConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x130c): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x1327): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x134a): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchMapperConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x1365): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchMapperConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x1388): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructdictionaryConstructorTables()' oscillatingFixedValueFvPatchFields.C:(.text+0x13a3): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::dictionaryConstructorTablePtr_' oscillatingFixedValueFvPatchFields.C:(.text+0x1401): undefined reference to `Foam::fvPatchField<Foam::SphericalTensor<double> >::constructpatchConstructorTables()' ... Thanks, Mirko |
|
January 28, 2011, 19:02 |
Problem solved
|
#2 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
I solved the problem by using the correct build tool. I was using
> wmake Instead, as I am building a library, and not an executable, I should have used > wmake libso |
|
April 12, 2011, 10:36 |
|
#3 | |
Member
xianghong wu
Join Date: Mar 2009
Posts: 57
Rep Power: 17 |
Quote:
I added a viscosity model into the viscosity model family, like other viscosity models, it is a folder " myViscosityModel" , in which there are "myViscosityModel.C" and "myViscosityModel.H". so I want to recompile the code, I used wmake, there are a lot of information, but there is one error, I can not find the problem. I just read your message, Could you tell me if I could use " wmake libso " instead? Thank you. Wendy |
||
April 13, 2011, 11:23 |
|
#4 | |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 |
Quote:
Mirko |
||
April 14, 2011, 04:20 |
|
#5 |
Member
xianghong wu
Join Date: Mar 2009
Posts: 57
Rep Power: 17 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 08:43 |
compiling icoStructFoam error using OF1.7 | mhassani | OpenFOAM Installation | 7 | June 11, 2012 10:22 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |
OpenFOAM-1.5-dev compilation: OSspecific trouble | gwierink | OpenFOAM Installation | 1 | September 24, 2009 10:35 |
Trouble compiling on Debian Etch | jkr | OpenFOAM Installation | 2 | April 14, 2006 15:56 |