CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

-Xlinker --add-needed -Xlinker --no-as-needed

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By alexeym
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2014, 07:06
Default -Xlinker --add-needed -Xlinker --no-as-needed
  #1
New Member
 
NH1994
Join Date: Oct 2014
Posts: 9
Rep Power: 12
NH1994 is on a distinguished road
hi
i have one conjugate heat transfer solver that working in 1.6ext. this code is compiled in one system that it make in it .but when is copied in another system
, give a error.
the error is this :
-fPIC -Xlinker --add-needed -Xlinker --no-as-needed



In fact
it is:
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.6-ext/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/VectorN/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc46DPOpt/thermalModel.o Make/linux64Gcc46DPOpt/thermalLaw.o Make/linux64Gcc46DPOpt/newThermalLaw.o Make/linux64Gcc46DPOpt/constantThermal.o Make/linux64Gcc46DPOpt/multiMaterialThermal.o Make/linux64Gcc46DPOpt/thermalSource.o Make/linux64Gcc46DPOpt/newThermalSource.o Make/linux64Gcc46DPOpt/constantThermalSource.o Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o -L/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt \
-lOpenFOAM -liberty -ldl -lm -o OpenFOAM.out
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::thermalModel::S() const':
............


linux is 12.04
openfoam 1.6ext
gcc4.6

can you help me?please
NH1994 is offline   Reply With Quote

Old   December 31, 2014, 07:15
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Quote:
Originally Posted by NH1994 View Post
the error is this :
-fPIC -Xlinker --add-needed -Xlinker --no-as-needed
No, these are compiler flags and not the error. In fact you've cropped actual error message. So please post output after

Code:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::thermalModel::S() const':
alexeym is offline   Reply With Quote

Old   December 31, 2014, 07:30
Default
  #3
New Member
 
NH1994
Join Date: Oct 2014
Posts: 9
Rep Power: 12
NH1994 is on a distinguished road
dear alexey
it is too long
i send it in to part
Code:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::thermalModel::S() const':
thermalModel.C:(.text+0xeb0): undefined reference to `Foam::fvMesh::boundary() const'
thermalModel.C:(.text+0xebf): undefined reference to `Foam::calculatedFvPatchField<double>::typeName'
thermalModel.C:(.text+0xedb): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::word const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) [clone .constprop.153]':
thermalModel.C:(.text+0x1564): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::type() const':
thermalModel.C:(.text._ZNK4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE4typeEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::type() const]+0x3): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::DimensionedField<double, Foam::volMesh>::type() const':
thermalModel.C:(.text._ZNK4Foam16DimensionedFieldIdNS_7volMeshEE4typeEv[Foam::DimensionedField<double, Foam::volMesh>::type() const]+0x3): undefined reference to `Foam::DimensionedField<double, Foam::volMesh>::typeName'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::fvPatchField<double>::type() const':
thermalModel.C:(.text._ZNK4Foam12fvPatchFieldIdE4typeEv[Foam::fvPatchField<double>::type() const]+0x3): undefined reference to `Foam::fvPatchField<double>::typeName'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::fvPatchField<double>::New(Foam::word const&, Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&)':
thermalModel.C:(.text._ZN4Foam12fvPatchFieldIdE3NewERKNS_4wordERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEE[Foam::fvPatchField<double>::New(Foam::word const&, Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&)]+0x2e): undefined reference to `Foam::fvPatchField<double>::debug'
thermalModel.C:(.text._ZN4Foam12fvPatchFieldIdE3NewERKNS_4wordERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEE[Foam::fvPatchField<double>::New(Foam::word const&, Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&)]+0x47): undefined reference to `Foam::fvPatchField<double>::patchConstructorTablePtr_'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricBoundaryField(Foam::fvBoundaryMesh const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::word const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC2ERKNS_14fvBoundaryMeshERKNS_16DimensionedFieldIdS2_EERKNS_4wordE[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC5ERKNS_14fvBoundaryMeshERKNS_16DimensionedFieldIdS2_EERKNS_4wordE]+0x3f): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricBoundaryField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC2ERKNS_16DimensionedFieldIdS2_EERKS4_[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC5ERKNS_16DimensionedFieldIdS2_EERKS4_]+0x3c): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&)':
thermalModel.C:(.text._ZN4Foam12fvPatchFieldIdE3NewERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEERKNS_10dictionaryE[Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&)]+0x8e): undefined reference to `Foam::fvPatchField<double>::debug'
thermalModel.C:(.text._ZN4Foam12fvPatchFieldIdE3NewERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEERKNS_10dictionaryE[Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&)]+0xd2): undefined reference to `Foam::fvPatchField<double>::dictionaryConstructorTablePtr_'
thermalModel.C:(.text._ZN4Foam12fvPatchFieldIdE3NewERKNS_7fvPatchERKNS_16DimensionedFieldIdNS_7volMeshEEERKNS_10dictionaryE[Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&)]+0x2ab): undefined reference to `Foam::fvPatchField<double>::disallowGenericFvPatchField'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricBoundaryField(Foam::fvBoundaryMesh const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC2ERKNS_14fvBoundaryMeshERKNS_16DimensionedFieldIdS2_EERKNS_10dictionaryE[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryFieldC5ERKNS_14fvBoundaryMeshERKNS_16DimensionedFieldIdS2_EERKNS_10dictionaryE]+0x40): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::fvPatchField<double>::snGrad() const':
thermalModel.C:(.text._ZNK4Foam12fvPatchFieldIdE6snGradEv[Foam::fvPatchField<double>::snGrad() const]+0x19): undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::operator==(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEeqERKNS_3tmpIS3_EE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::operator==(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&)]+0x40): undefined reference to `Foam::fvMesh::operator!=(Foam::fvMesh const&) const'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::storeOldTime() const':
thermalModel.C:(.text._ZNK4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE12storeOldTimeEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::storeOldTime() const]+0x1d): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE9readFieldERNS_7IstreamE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&)]+0x95): undefined reference to `Foam::fvMesh::boundary() const'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readIfPresent()':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE13readIfPresentEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readIfPresent()]+0xd0): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC2ERKNS_8IOobjectERKS3_[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC5ERKNS_8IOobjectERKS3_]+0x108): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readOldTimeIfPresent()':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE20readOldTimeIfPresentEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readOldTimeIfPresent()]+0x118): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/thermalModel.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&)':
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC2ERKNS_8IOobjectERKNS_6fvMeshE[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC5ERKNS_8IOobjectERKNS_6fvMeshE]+0xb4): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
thermalModel.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC2ERKNS_8IOobjectERKNS_6fvMeshE[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC5ERKNS_8IOobjectERKNS_6fvMeshE]+0x223): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/constantThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensioned<double> const&, Foam::word const&) [clone .constprop.147]':
constantThermal.C:(.text+0xa89): undefined reference to `Foam::fvMesh::boundary() const'
constantThermal.C:(.text+0xa97): undefined reference to `Foam::zeroGradientFvPatchField<double>::typeName'
constantThermal.C:(.text+0xaac): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/constantThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::word const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) [clone .constprop.155]':
constantThermal.C:(.text+0x1964): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/constantThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()':
constantThermal.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()]+0x14): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/constantThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::dictionary const&)':
constantThermal.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE9readFieldERKNS_10dictionaryE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::dictionary const&)]+0x70): undefined reference to `Foam::fvMesh::boundary() const'
Make/linux64Gcc46DPOpt/multiMaterialThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) [clone .constprop.183]':
multiMaterialThermal.C:(.text+0x9b4): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
multiMaterialThermal.C:(.text+0xb23): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/multiMaterialThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensioned<double> const&, Foam::word const&) [clone .constprop.175]':
multiMaterialThermal.C:(.text+0x13c9): undefined reference to `Foam::fvMesh::boundary() const'
multiMaterialThermal.C:(.text+0x13d7): undefined reference to `Foam::zeroGradientFvPatchField<double>::typeName'
multiMaterialThermal.C:(.text+0x13ec): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/multiMaterialThermal.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::word const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&)':
NH1994 is offline   Reply With Quote

Old   December 31, 2014, 07:32
Default
  #4
New Member
 
NH1994
Join Date: Oct 2014
Posts: 9
Rep Power: 12
NH1994 is on a distinguished road
continue
Code:
multiMaterialThermal.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC2ERKNS_4wordERKS3_[_ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEC5ERKNS_4wordERKS3_]+0x7b): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::debug'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::controlledParabolicVelocityFvPatchVectorField::updateCoeffs()':
controlledParabolicVelocityFvPatchVectorField.C:(.text+0x21a3): undefined reference to `Foam::fvPatch::Cf() const'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fvPatchField<Foam::Vector<double> >::type() const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam12fvPatchFieldINS_6VectorIdEEE4typeEv[Foam::fvPatchField<Foam::Vector<double> >::type() const]+0x3): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::typeName'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fixedValueFvPatchField<Foam::Vector<double> >::type() const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam22fixedValueFvPatchFieldINS_6VectorIdEEE4typeEv[Foam::fixedValueFvPatchField<Foam::Vector<double> >::type() const]+0x3): undefined reference to `Foam::fixedValueFvPatchField<Foam::Vector<double> >::typeName'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::controlledParabolicVelocityFvPatchVectorField>::~adddictionaryConstructorToTable()':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZN4Foam12fvPatchFieldINS_6VectorIdEEE31adddictionaryConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED2Ev[_ZN4Foam12fvPatchFieldINS_6VectorIdEEE31adddictionaryConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED5Ev]+0x1): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::destroydictionaryConstructorTables()'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fvPatchField<Foam::Vector<double> >::addpatchMapperConstructorToTable<Foam::controlledParabolicVelocityFvPatchVectorField>::~addpatchMapperConstructorToTable()':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZN4Foam12fvPatchFieldINS_6VectorIdEEE32addpatchMapperConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED2Ev[_ZN4Foam12fvPatchFieldINS_6VectorIdEEE32addpatchMapperConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED5Ev]+0x1): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::destroypatchMapperConstructorTables()'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fvPatchField<Foam::Vector<double> >::addpatchConstructorToTable<Foam::controlledParabolicVelocityFvPatchVectorField>::~addpatchConstructorToTable()':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZN4Foam12fvPatchFieldINS_6VectorIdEEE26addpatchConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED2Ev[_ZN4Foam12fvPatchFieldINS_6VectorIdEEE26addpatchConstructorToTableINS_45controlledParabolicVelocityFvPatchVectorFieldEED5Ev]+0x1): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::destroypatchConstructorTables()'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fvPatchField<Foam::Vector<double> >::snGrad() const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam12fvPatchFieldINS_6VectorIdEEE6snGradEv[Foam::fvPatchField<Foam::Vector<double> >::snGrad() const]+0x19): undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam14objectRegistry12lookupObjectINS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEEERKT_RKNS_4wordE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const]+0x146): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam14objectRegistry12lookupObjectINS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEEERKT_RKNS_4wordE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const]+0x199): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam14objectRegistry12lookupObjectINS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEEERKT_RKNS_4wordE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const]+0x272): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fixedValueFvPatchField<Foam::Vector<double> >::gradientInternalCoeffs() const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam22fixedValueFvPatchFieldINS_6VectorIdEEE22gradientInternalCoeffsEv[Foam::fixedValueFvPatchField<Foam::Vector<double> >::gradientInternalCoeffs() const]+0xd): undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `Foam::fixedValueFvPatchField<Foam::Vector<double> >::gradientBoundaryCoeffs() const':
controlledParabolicVelocityFvPatchVectorField.C:(.text._ZNK4Foam22fixedValueFvPatchFieldINS_6VectorIdEEE22gradientBoundaryCoeffsEv[Foam::fixedValueFvPatchField<Foam::Vector<double> >::gradientBoundaryCoeffs() const]+0x19): undefined reference to `Foam::fvPatch::deltaCoeffs() const'
Make/linux64Gcc46DPOpt/controlledParabolicVelocityFvPatchVectorField.o: In function `_GLOBAL__sub_I_controlledParabolicVelocityFvPatchVectorField.C':
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0xaf): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchConstructorTables()'
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0xc7): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchConstructorTablePtr_'
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0xea): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchMapperConstructorTables()'
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0x105): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchMapperConstructorTablePtr_'
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0x128): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructdictionaryConstructorTables()'
controlledParabolicVelocityFvPatchVectorField.C:(.text.startup+0x143): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::dictionaryConstructorTablePtr_'
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
NH1994 is offline   Reply With Quote

Old   December 31, 2014, 07:45
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
It looks like

1. you try to compile library with just wmake (IIRC in 1.6 it should be done with wmake libso).

2. you've got problem with libraries in Make/options

I don't know why these problems appeared only on the new system.
wyldckat likes this.
alexeym is offline   Reply With Quote

Old   December 31, 2014, 09:31
Default
  #6
New Member
 
NH1994
Join Date: Oct 2014
Posts: 9
Rep Power: 12
NH1994 is on a distinguished road
Dear alexey

thank you very much

i compile the solver with wmake libso , it was compiled .
but i dont know what is different between wmake and wmake libso?
and is this correct or not?
NH1994 is offline   Reply With Quote

Old   December 31, 2014, 09:49
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Name tells the result of compilation - "libso", so it compiles just library. Don't know if it is what you want. If you invoke wmake without arguments, it will try to compile executable, so you need main function in your sources (and this is not the case as linker complained about absent main function).
NH1994 likes this.
alexeym is offline   Reply With Quote

Old   December 31, 2014, 11:24
Default
  #8
New Member
 
NH1994
Join Date: Oct 2014
Posts: 9
Rep Power: 12
NH1994 is on a distinguished road
thanks again for your help . dear alexey
best regards
NH1994 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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 13:39
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 10:23
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 05:21
[DesignModeler] Help needed. Add Frozen doesn't work? MuhammadK ANSYS Meshing & Geometry 4 April 18, 2012 18:39


All times are GMT -4. The time now is 23:39.