CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

error in linking new libraries to solids4Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2020, 02:50
Post error in linking new libraries to solids4Foam
  #1
New Member
 
peyman havaej
Join Date: Jan 2016
Posts: 16
Rep Power: 10
peyman.havaej is on a distinguished road
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.
I attached the log file, I appreciate it if anyone can suggest a solution.

Thanks in advance,
Attached Files
File Type: txt logFile.txt (3.8 KB, 4 views)

Last edited by peyman.havaej; January 22, 2020 at 02:48.
peyman.havaej is offline   Reply With Quote

Reply

Tags
compile error, fsi, new library, solids4foam


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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
corrupted double-linked list error when linking certain libraries AlmostSurelyRob OpenFOAM Programming & Development 0 November 26, 2013 06:47
Linking libraries with wmake hemph OpenFOAM 5 November 13, 2006 04:12
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 24, 2006 23:09
CGNS libraries, compiling and linking... Ironman80 Main CFD Forum 2 February 14, 2006 22:36


All times are GMT -4. The time now is 19:50.