|
[Sponsors] |
error in linking new libraries to solids4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 21, 2020, 03:50 |
error in linking new libraries to solids4Foam
|
#1 |
New Member
peyman havaej
Join Date: Jan 2016
Posts: 16
Rep Power: 10 |
Dear All
I have used the solids4Foam toolbox for a while. However, now, when I added some new user libraries and fluid models, I am faced an error about "undefined reference to...". I searched for this C++ error and found that it is related to linking the libraries which are now used. While everything including All of the solid and fluid models were compiled completely without error or warning, solids4foam solver cannot be compiled. Code:
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I../../../src/solids4FoamModels/lnInclude -I../../../src/blockCoupledSolids4FoamTools/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/finiteVolume/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/finiteArea/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/lagrangian/basic/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/meshTools/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/tetFiniteElement/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/thermophysicalModels/barotropicCompressibilityModel/lnInclude -IphaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture -I/home/peyman/foam/peyman-4.1/src/EOSModel/lnInclude -I/home/peyman/foam/peyman-4.1/src/thermalConductivityModels/lnInclude -I/home/peyman/foam/peyman-4.1/src/heatCapacityModels/lnInclude -I/home/peyman/foam/peyman-4.1/src/gaseousCavitationModel/lnInclude -IlnInclude -I. -I/home/peyman/foam/foam-extend-4.1/src/foam/lnInclude -I/home/peyman/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/solids4Foam.o -L/home/peyman/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt \ -L/home/peyman/foam/peyman-4.1/lib/linux64GccDPInt32Opt -loversetMesh -loversetDynamicFvMesh -lblockCoupledSolids4FoamTools -lsolids4FoamModels -lfiniteVolume -linterfaceProperties -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -ltopoChangerFvMesh -llduSolvers -lbarotropicCompressibilityModel -lfoam -ldl -lrt -lm -o /home/peyman/foam/peyman-4.1/applications/bin/linux64GccDPInt32Opt/solids4Foam /home/peyman/foam/peyman-4.1/lib/linux64GccDPInt32Opt/libsolids4FoamModels.so: undefined reference to `Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::ddt<double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&)' collect2: error: ld returned 1 exit status /home/peyman/foam/foam-extend-4.1/wmake/Makefile:159: recipe for target '/home/peyman/foam/peyman-4.1/applications/bin/linux64GccDPInt32Opt/solids4Foam' failed make[1]: *** [/home/peyman/foam/peyman-4.1/applications/bin/linux64GccDPInt32Opt/solids4Foam] Error 1 /home/peyman/foam/foam-extend-4.1/wmake/MakefileApps:39: recipe for target 'solids4Foam' failed make: *** [solids4Foam] Error 2 make: Target 'application' not remade because of errors. Thanks in advance, Last edited by peyman.havaej; January 22, 2020 at 03:48. |
|
Tags |
compile error, fsi, new library, solids4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] difficulties installing swak4foam | newbie29 | OpenFOAM Community Contributions | 120 | October 21, 2022 05:01 |
corrupted double-linked list error when linking certain libraries | AlmostSurelyRob | OpenFOAM Programming & Development | 0 | November 26, 2013 07:47 |
Linking libraries with wmake | hemph | OpenFOAM | 5 | November 13, 2006 05:12 |
OpenFOAM with Cygwin | kitchener | OpenFOAM Installation | 6 | April 25, 2006 00:09 |
CGNS libraries, compiling and linking... | Ironman80 | Main CFD Forum | 2 | February 14, 2006 23:36 |