|
[Sponsors] |
September 30, 2008, 05:35 |
Hello,
i have a problem wit
|
#1 |
Member
Join Date: Mar 2009
Posts: 35
Rep Power: 17 |
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.C.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 |
|
September 30, 2008, 06:40 |
It means that
defineTypeName
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
September 30, 2008, 08:21 |
Hello Bernhard,
thanks for
|
#3 |
Member
Join Date: Mar 2009
Posts: 35
Rep Power: 17 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF COMPILE | Miguel Olvera | FLUENT | 4 | March 18, 2007 09:07 |
Help Please--UDF compile | xc | FLUENT | 7 | December 2, 2005 13:34 |
CANNOT COMPILE | Luca | FLUENT | 9 | November 30, 2004 14:44 |
Compile message for user subroutine??? | bk | Siemens | 0 | July 28, 2004 22:02 |
COMPILE *.C ERROR MESSAGE | stk | FLUENT | 0 | February 9, 2004 11:09 |