[Coin-discuss] Finding libs at run time and Cbc/Dylp

Laszlo Ladanyi ladanyi at us.ibm.com
Mon Mar 27 13:37:42 EST 2006



On Sun, 26 Mar 2006, Laszlo Ladanyi wrote:

> On Sat, 25 Mar 2006, Francois Margot wrote:
> 
> > 
> > I jut downloaded COIN this morning from cvs. Several changes have
> > been made to the makefiles, apparently.
> > 
> > After compiling several COIN packages (Bcp, Cbc) with all the defaults
> > Linux settings (including SHARED libraries), they are not able to find
> > the libraries in COIN/lib at run time. I have to add COIN/lib to 
> > LD_LIBRARY_PATH to run them successfully. This happens on RedHat Enterprise
> > Linux and Fedora Core 3 using gcc3.2.
> > 
> > I never noticed that before (but I usually work with STATIC libs). 
> > Am I the only one experiencing this? If not, either the installation 
> > procedures should indicate modifying LD_LIBRARY_PATH (as far as I know, 
> > none of the INSTALL files mention this, and  this is not mentioned in 
> > the FAQs either) or some changes in the makefiles are necessary.
> 
> Interesting. I have no such problem. Could you check the final link line and
> see -f there are -Wl,-rpath,... arguments there? If not, can you check the
> value of SHLINK_PREFIX?
> 

Apparently when test code is compiled LibType does not get set (and as Lou
pointed out, SHLINK_PREFIX does not get set if LibType is not set). Taking the
easiest way out, I have modified Makefile.Linux to default LibType to SHARED
in case it is not defined. The change is committed.

--Laci




More information about the Coin-discuss mailing list