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

Cryptic compile message

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2008, 04:35
Default Hello, i have a problem wit
  #1
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
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
booz is offline   Reply With Quote

Old   September 30, 2008, 05:40
Default It means that defineTypeName
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Old   September 30, 2008, 07:21
Default Hello Bernhard, thanks for
  #3
Member
 
Join Date: Mar 2009
Posts: 35
Rep Power: 17
booz is on a distinguished road
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
booz 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
UDF COMPILE Miguel Olvera FLUENT 4 March 18, 2007 08:07
Help Please--UDF compile xc FLUENT 7 December 2, 2005 12:34
CANNOT COMPILE Luca FLUENT 9 November 30, 2004 13:44
Compile message for user subroutine??? bk Siemens 0 July 28, 2004 21:02
COMPILE *.C ERROR MESSAGE stk FLUENT 0 February 9, 2004 10:09


All times are GMT -4. The time now is 13:54.