1834130 Members
3295 Online
110064 Solutions
New Discussion

Re: Compilation Error

 
Eleezza
New Member

Compilation Error

Hi ,

While compiling the following error takes place /usr/ccs/bin/ld: Can't find library for -xxx

its searching for lxxx in the given path .Me not sure if that library exists in the path.

So how do i know where is the library for xxx exists.
1 REPLY 1
Peter Nikitka
Honored Contributor

Re: Compilation Error

Hi,

a linker option
-lxxx
searches libraries of name
libxxx.sl
libxxx.a
(depending on dynamic or static search) in
/usr/lib
AND all pathes found before the option -lxxx you gave via
-Lpathname

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"