CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Cryptic compile message (http://www.cfd-online.com/Forums/openfoam-pre-processing/62034-cryptic-compile-message.html)

booz September 30, 2008 04:35

Hello, i have a problem wit
 
Hello,

i have a problem with my solverprogram. If i wmake the job, the compiler display sth. i don't understand.
The error message is:

wmake ObjectAdjFuncFoam
Making dependency list for source file AdjVelocityBoundary/AdjVelocityfixedNormalSlipFvPatchField.C
SOURCE=AdjVelocityBoundary/AdjVelocityfixedNormalSlipFvPatchField.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/lObjectAdjFuncFoam -IlnInclude -I. -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/AdjVelocityfixedNormalSlipFvPatchField.o
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/lObjectAdjFuncFoam -IlnInclude -I. -I/users/studi8/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/ObjectAdjFuncFoam.o Make/linuxGccDPOpt/AdjPressurefixedFvPatchScalarField.o Make/linuxGccDPOpt/AdjVelocityfixedNormalSlipFvPatchField.o -L/users/studi8/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt \
-lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /users/studi8/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/ObjectAdjFu ncFoam
Make/linuxGccDPOpt/AdjVelocityfixedNormalSlipFvPatchField.o: In function `Foam::AdjVelocityfixedNormalSlipFvPatchField::typ e() const':
AdjVelocityfixedNormalSlipFvPatchField.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam38AdjVelocityfixedNormalSlipFvPatch Field4typeEv[Foam::AdjVelocity fixedNormalSlipFvPatchField::type() const]+0x11): undefined reference to `Foam::AdjVelocityfixedNormalSlipFvPatchField::typ eName'
collect2: ld returned 1 exit status
make: *** [/users/studi8/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/ObjectAdjF uncFoam] Error 1


Can anybody tell me, what it means?

Thanks!

Regards,
Khaled

gschaider September 30, 2008 05:40

It means that defineTypeName
 
It means that
defineTypeNameAndDebug(AdjVelocityfixedNormalSlipF vPatchField)
is in none of your .C-files (you used the TypeName-macro in the declaration of AdjVelocityfixedNormalSlipFvPatchField, which promised, that a typeName would be found somewhere. defineTypeNameAndDebug fulfills that promise)

booz September 30, 2008 07:21

Hello Bernhard, thanks for
 
Hello Bernhard,

thanks for the entry.
I tried with

defineTypeNameAndDebug(AdjVelocityfixedNormalSlipF vPatchField, 0)

in namespace Foam and the compiler display no error message.

But i dont understand, why have to be so, because in many solver examples like rhopSonicFoam or in /src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFv PatchField
it isnt so.

Thanks!

Regards,
Khaled


All times are GMT -4. The time now is 04:36.