CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Error with Wmake

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 5, 2007, 19:31
Default Hi, I get the following err
  #1
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
Hi,

I get the following error message when I use wmake. Can anyone tell me who to fix this?

Making dependency list for source file fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUniformFixe dValueFvPatchFields.C
SOURCE=fields/fvPatchFields/derived/timeVaryingUniformFixedValue/timeVaryingUnif ormFixedValueFvPatchFields.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/triSurface/lnInclude -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/triSurface/lnInclude -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o -L/home/skabilan/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt \
-lOpenFOAM -ldl -lm -o OpenFOAM.out
/usr/lib/crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x43): In function `__tcf_20':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::destroydictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x63): In function `__tcf_19':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::destroypatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x83): In function `__tcf_18':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::destroypatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0xa3): In function `__tcf_16':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::destroydictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0xc3): In function `__tcf_15':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::destroypatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0xe3): In function `__tcf_14':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::destroypatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x103): In function `__tcf_12':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::destroydictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x123): In function `__tcf_11':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::destroypatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x143): In function `__tcf_10':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::destroypatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x163): In function `__tcf_8':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::destroydictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x183): In function `__tcf_7':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::destroypatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1a3): In function `__tcf_6':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::destroypatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1c3): In function `__tcf_4':
: undefined reference to `Foam::fvPatchField<double>::destroydictionaryCons tructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1e3): In function `__tcf_3':
: undefined reference to `Foam::fvPatchField<double>::destroypatchMapperCon structorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x203): In function `__tcf_2':
: undefined reference to `Foam::fvPatchField<double>::destroypatchConstruct orTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x34c): In function `Foam::timeVaryingUniformFixedValueFvPatchField<fo am::tensor<double> >::updateCoeffs()':
: undefined reference to `Foam::fvPatch::nf() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x361): In function `Foam::timeVaryingUniformFixedValueFvPatchField<fo am::tensor<double> >::updateCoeffs()':
: undefined reference to `Foam::fvPatch::nf() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x7ec): In function `Foam::timeVaryingUniformFixedValueFvPatchField<fo am::symmtensor<double> >::updateCoeffs()':
: undefined reference to `Foam::fvPatch::nf() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0xd54): In function `Foam::timeVaryingUniformFixedValueFvPatchField<fo am::vector<double> >::updateCoeffs()':
: undefined reference to `Foam::fvPatch::nf() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1421): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::constructpatchConstru ctorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1437): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::patchConstructorTable Ptr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x146a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::constructpatchMapperC onstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1480): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::patchMapperConstructo rTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x14b3): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::constructdictionaryCo nstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x14c9): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<double>::dictionaryConstructor TablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1674): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::constructpatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x168a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::patchConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x16bd): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::constructpatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x16d3): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::patchMapperConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1706): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::constructdictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x171c): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::dictionaryConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x18c4): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::constructpatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x18da): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::patchConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x190d): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::constructpatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1923): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::patchMapperConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1956): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::constructdictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x196c): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::dictionaryConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1b14): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::constructpatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1b2a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::patchConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1b5d): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::constructpatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1b73): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::patchMapperConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1ba6): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::constructdictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1bbc): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::dictionaryConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1c3f): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::constructpatchConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1c55): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::patchConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1c88): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::constructpatchMapperConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1c9e): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::patchMapperConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1cd1): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::constructdictionaryConstructorTables()'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text+ 0x1ce7): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::dictionaryConstructorTablePtr_'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_6TensorIdEEE4typeEv[Foam::fixedValueFvPatchField<foam: :tensor<double> >::type() const]+0x11): In function `Foam::fixedValueFvPatchField<foam::tensor<double> >::type() const':
: undefined reference to `Foam::fixedValueFvPatchField<foam::tensor<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldINS_6TensorIdEEE4typeEv[Foam::fvPatchField<foam::tensor<double> >::type() const]+0x11): In function `Foam::fvPatchField<foam::tensor<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_10SymmTensorIdEEE4typeEv[Foam::fixedValueFvPatchField< foam::symmtensor<double> >::type() const]+0x11): In function `Foam::fixedValueFvPatchField<foam::symmtensor<dou ble> >::type() const':
: undefined reference to `Foam::fixedValueFvPatchField<foam::symmtensor<dou ble> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldINS_10SymmTensorIdEEE4typeEv[Foam::fvPatchField<foam::symmtensor<dou ble> >::type() const]+0x11): In function `Foam::fvPatchField<foam::symmtensor<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::symmtensor<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_15SphericalTensorIdEEE4t ypeEv[Foam::fixedValueFvPatchF ield<foam::sphericaltensor<double> >::type() const]+0x11): In function `Foam::fixedValueFvPatchField<foam::sphericaltenso r<double> >::type() const':
: undefined reference to `Foam::fixedValueFvPatchField<foam::sphericaltenso r<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldINS_15SphericalTensorIdEEE4typeEv[Foam::fvPatchField<foam::spherical tensor<double> >::type() const]+0x11): In function `Foam::fvPatchField<foam::sphericaltensor<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::sphericaltensor<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_6VectorIdEEE4typeEv[Foam::fixedValueFvPatchField<foam: :vector<double> >::type() const]+0x11): In function `Foam::fixedValueFvPatchField<foam::vector<double> >::type() const':
: undefined reference to `Foam::fixedValueFvPatchField<foam::vector<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldINS_6VectorIdEEE4typeEv[Foam::fvPatchField<foam::vector<double> >::type() const]+0x11): In function `Foam::fvPatchField<foam::vector<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldIdE4typeEv[Foam::fixedValueFvPatchField<double>::type() const]+0x11): In function `Foam::fixedValueFvPatchField<double>::type() const':: undefined reference to `Foam::fixedValueFvPatchField<double>::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldIdE4typeEv[Foam::fvPatchField<double>::type() const]+0x11): In function `Foam::fvPatchField<double>::type() const':
: undefined reference to `Foam::fvPatchField<double>::typeName'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldIdE22gradientBoundaryCoeffsE v[Foam::fixedValueFvPatchField <double>::gradientBoundaryCoeffs() const]+0x2a): In function `Foam::fixedValueFvPatchField<double>::gradientBou ndaryCoeffs() const':
: undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam12 fvPatchFieldIdE6snGradEv[Foam::fvPatchField<double>::snGrad() const]+0x21): In function `Foam::fvPatchField<double>::snGrad() const':
: undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_6TensorIdEEE22gradientBo undaryCoeffsEv[Foam::fixedValu eFvPatchField<foam::tensor<double> >::gradientBoundaryCoeffs() const]+0x2a): In function `Foam::fixedValueFvPatchField<foam::tensor<double> >::gradientBoundaryCoeffs() const':
: undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_6TensorIdEEE22gradientIn ternalCoeffsEv[Foam::fixedValu eFvPatchField<foam::tensor<double> >::gradientInternalCoeffs() const]+0x20): In function `Foam::fixedValueFvPatchField<foam::tensor<double> >::gradientInternalCoeffs() const':
: undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldIdE22gradientInternalCoeffsE v[Foam::fixedValueFvPatchField <double>::gradientInternalCoeffs() const]+0x24): In function `Foam::fixedValueFvPatchField<double>::gradientInt ernalCoeffs() const':
: undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linuxGccDPOpt/timeVaryingUniformFixedValueFvPatchFields.o(.text. _ZNK4Foam22 fixedValueFvPatchFieldINS_15SphericalTensorIdEEE22 gradientBoundaryCoeffsEv[Foam: :fixedValueFvPatchField<foam::sphericaltensor<doub le> >::gradientBoundaryCoeffs() const]+0x2a): more undefined references to `Foam::fvPatch::deltaCoeffs() const' follow
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1


Thanks
Senthil
skabilan is offline   Reply With Quote

Old   October 5, 2007, 20:46
Default Hi, I figured out what the
  #2
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
Hi,

I figured out what the problem was. Need to use
'wmake libso' when compiling the libraries.

Thanks
Senthil
skabilan is offline   Reply With Quote

Old   July 27, 2009, 23:59
Default
  #3
Member
 
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 8
awacs is on a distinguished road
Quote:
Originally Posted by skabilan View Post
Hi,

I figured out what the problem was. Need to use
'wmake libso' when compiling the libraries.

Thanks
Senthil
Hi Senthil,

I want to implement a new boundary condition. I can compile the library successfully with "wmake libso" on OF1.5 (32 bit). But when I compile the same library using "wmake libso" on OF1.5 (64 bit), I get the following errors:

/home/openfoam/OpenFOAM/openfoam-1.5/lib/linux64GccDPOpt/libfilterU.so: file not recognized: File truncated
collect2: ld returned 1 exit statu

make: *** [/home/openfoam/OpenFOAM/openfoam-1.5/lib/linux64GccDPOpt/libfilterU.so] Error 1


Please tell me how to fix it. I will really appreciate your help.

Kind regards,
Jitao
awacs is offline   Reply With Quote

Old   July 28, 2009, 00:35
Default
  #4
Member
 
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 8
awacs is on a distinguished road
PS:

When I compile it using "wmake" on OF1.5 (64 bit), I got the follwing errors:

Making dependency list for source file filterUFvPatchFields.C
SOURCE=filterUFvPatchFields.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/triSurface/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/filterUFvPatchFields.o
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/triSurface/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/filterUFvPatchFields.o -L/home/openfoam/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt \
-lOpenFOAM -liberty -ldl -lm -o OpenFOAM.out
/usr/lib/../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
Make/linux64GccDPOpt/filterUFvPatchFields.o: In function `global constructors keyed to filterUFvPatchFields.C':
filterUFvPatchFields.C.text+0xa8): undefined reference to `Foam::fvPatchField<double>::constructpatchConstru ctorTables()'
filterUFvPatchFields.C.text+0xc8): undefined reference to `Foam::fvPatchField<double>:atchConstructorTable Ptr_'
filterUFvPatchFields.C.text+0xeb): undefined reference to `Foam::fvPatchField<double>::constructpatchMapperC onstructorTables()'
filterUFvPatchFields.C.text+0x10b): undefined reference to `Foam::fvPatchField<double>:atchMapperConstructo rTablePtr_'
filterUFvPatchFields.C.text+0x12e): undefined reference to `Foam::fvPatchField<double>::constructdictionaryCo nstructorTables()'
...
...
...
Make/linux64GccDPOpt/filterUFvPatchFields.o: In function `Foam::fvPatchField<Foam::SphericalTensor<double> >::snGrad() const':
filterUFvPatchFields.C.text._ZNK4Foam12fvPatchFi eldINS_15SphericalTensorIdEEE6snGradEv[Foam::fvPatchField<Foam::SphericalTensor<double> >::snGrad() const]+0x2d): undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linux64GccDPOpt/filterUFvPatchFields.o:filterUFvPatchFields.C.te xt._ZNK4Foam12fvPatchFieldINS_10SymmTensorIdEEE6sn GradEv[Foam::fvPatchField<Foam::SymmTensor<double> >::snGrad() const]+0x2d): more undefined references to `Foam::fvPatch::deltaCoeffs() const' follow
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1


When using " wmake libso", the following error occurs:


/home/openfoam/OpenFOAM/openfoam-1.5/lib/linux64GccDPOpt/libfilterU.so: file not recognized: File truncated
collect2: ld returned 1 exit statu

make: *** [/home/openfoam/OpenFOAM/openfoam-1.5/lib/linux64GccDPOpt/libfilterU.so] Error 1


Please give me some hints.

Thanks in advance.

Jitao
awacs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wmake as User sven82 OpenFOAM Installation 3 August 14, 2013 03:23
Wmake error murasaki OpenFOAM 6 August 9, 2010 14:03
Anyone using distcc with wmake kar OpenFOAM 2 March 14, 2008 06:13
Wmake error OpenSUSE 103 64 bit arch tom OpenFOAM Installation 5 February 8, 2008 13:57
Wmake error suffix or operands invalid for bpushb stefan82 OpenFOAM Installation 2 May 16, 2007 09:56


All times are GMT -4. The time now is 21:49.