CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Error:/usr/bin/ld: cannot find -lreynoldsnet collect2: error: ld returned 1 exit stat

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

LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2021, 22:55
Default Error:/usr/bin/ld: cannot find -lreynoldsnet collect2: error: ld returned 1 exit stat
New Member
Join Date: May 2020
Posts: 8
Rep Power: 4
3014214149 is on a distinguished road
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:
-I../turbulenceModels/lnInclude \
-I../turbulenceModles/reynoldsNet/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/finiteVolume/lnInclude \

-lincompressibleTransportModels \
-lturbulenceModels \
-lfiniteVolume \
-lmeshTools \

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.
3014214149 is offline   Reply With Quote

Old   January 18, 2021, 15:03
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 469
Rep Power: 11
Tobermory will become famous soon enough
Just a quick question - what name did you give the "reynoldsnet" lib? In your make file, the line
expects to see a file called Is that what you called it?
Tobermory is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug version of OpenFOAM-1.6 alundilong OpenFOAM Installation 19 June 20, 2020 12:52
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

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