Operating System - HP-UX
1754879 Members
3855 Online
108827 Solutions
New Discussion юеВ

Re: Cant find library for -lgcc_s

 
SOLVED
Go to solution
Stephen Badgett
Regular Advisor

Cant find library for -lgcc_s

Hi

When trying to compile a simple program we get a simple error message ...

Cannot find library for -lgcc_s

we have a HP-UX 11.11
with gcc --version
gcc (GCC) 3.4.3

My $SHLIB_PATH has /usr/local/lib/ in it
the dir listing of /usr/local/lib/ if it helps ...
ll -utr
total 54416
-rw-rw-rw- 1 root sys 1043200 May 19 16:42 sysintr
-r-xr-xr-x 1 bin bin 692 Jun 2 11:24 libopcodes.la
-r-xr-xr-x 1 bin bin 680 Jun 2 11:24 libbfd.la
-r--r--r-- 1 bin bin 317428 Jun 2 11:24 libopcodes.a
-r--r--r-- 1 bin bin 2629000 Jun 2 11:24 libbfd.a
-r--r--r-- 1 bin bin 1157064 Jun 3 09:49 libiberty.a
-r-xr-xr-x 1 bin bin 10489756 Jun 3 09:49 libstdc++.sl.6.3
-r--r--r-- 1 bin bin 679442 Jun 3 09:49 libsupc++.a
-r-xr-xr-x 1 bin bin 1347580 Jun 3 09:49 libgcc_s.1
-r--r--r-- 1 bin bin 10139630 Jun 3 09:49 libstdc++.a
-r-xr-xr-x 1 bin bin 1143 Jun 3 09:49 libstdc++.la
-r-xr-xr-x 1 bin bin 1057 Jun 3 09:49 libsupc++.la
drwxrwxrwx 3 root sys 96 Jun 6 10:18 gcc
lrwxr-xr-x 1 root sys 29 Jun 6 10:18 xcdroast-0.98 -> /opt/OpenSource/xcdroast-0.98
Not as is, is now
3 REPLIES 3
Ermin Borovac
Honored Contributor
Solution

Re: Cant find library for -lgcc_s

Is there a /usr/local/lib/libgcc_s.sl symbolic link? It should exist and point to /usr/local/lib/libgcc_s.1.
Stephen Badgett
Regular Advisor

Re: Cant find library for -lgcc_s

Yes - that was it -- thank you
Not as is, is now
Stephen Badgett
Regular Advisor

Re: Cant find library for -lgcc_s

ln -- should have known -- thank you
Not as is, is now