1836460 Members
2392 Online
110101 Solutions
New Discussion

Re: LD problems

 
Jayesh shah
Frequent Advisor

LD problems

Hi ,
I am getting the following error:
======================================================
/ha/be_sam/11.11_on//usr/ccs/bin/ld: Can't open /opt/CC/lib/libcxx.a
/ha/be_sam/11.11_on//usr/ccs/bin/ld: No such file or directory
=======================================================

How do I ask "ld" to load the libraries from a different path
($BLDENV/opt/CC/lib/)

This library is used only by ld at build time.I think I cannot used -L
option as the library is not being linked using the -l option.It is
being used by ld internally.

Any info on this would be appreciated .

Thanks,
Jayesh shah


2 REPLIES 2

Re: LD problems

For shared libraries you need to export SHLIB_PATH and LD_LIBRARY_PATH (64bit only) in your environment.

Regards,
Andre
Jayesh shah
Frequent Advisor

Re: LD problems

Hi,
It is an archive library
libcxx.a

And note it is only used by ld internally at compile time.