|
[Sponsors] |
Error:/usr/bin/ld: cannot find -lreynoldsnet collect2: error: ld returned 1 exit stat |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 17, 2021, 22:55 |
Error:/usr/bin/ld: cannot find -lreynoldsnet collect2: error: ld returned 1 exit stat
|
#1 |
New Member
Join Date: May 2020
Posts: 8
Rep Power: 5 |
Hi, everyone.
I tried to compile a new lib but it met the error that "/usr/bin/ld: cannot find -lreynoldsnet collect2: error: ld returned 1 exit status". The lib I tried to compile is a modified incompressible lib. When compiling this lib, it should call another user defined lib, "reynoldsnet" lib. I have succeeded in compiling reynoldsnet lib. In user platforms(located in "/home/cbq/OpenFOAM/cbq-4.1/platforms/linux64GccDPInt32Opt/lib"), this lib can be seen. To call this lib, the "option" file in "Make" folder is written as following: EXE_INC = \ -I../turbulenceModels/lnInclude \ -I../turbulenceModles/reynoldsNet/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude LIB_LIBS = \ -lincompressibleTransportModels \ -lturbulenceModels \ -lfiniteVolume \ -lmeshTools \ -lreynoldsnet But when I type "wmake" in terminal, it occurred an error said "cannot find -lreynoldsnet collect2: error: ld returned 1 exit stat". Could anyone tell me how to solve this problem? Thanks a lot. |
|
January 18, 2021, 15:03 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 663
Rep Power: 13 |
Just a quick question - what name did you give the "reynoldsnet" lib? In your make file, the line
Code:
-lreynoldsnet |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debug version of OpenFOAM-1.6 | alundilong | OpenFOAM Installation | 20 | May 11, 2023 08:31 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
OpenFOAM installation problem on Linux 32bit | kumar | OpenFOAM Installation | 0 | April 27, 2007 06:41 |