Debian and LD_LIBRARY_PATH=$(HOME)/lib not working

14/04/2008 - 21:24 von Lothar Behrens | Report spam
Hi,

I have freshly installed Debian Etch on PPC and could compile my
source (partly to the first linker error :-).

This is the command to compile:

gcc-4.1 -shared -WL,soname,lbDB.so.0 -o lbDB.so.0.0.1 lbDB.o -ldl -
lstdc++ -L/home/lothar/lib -llbHook -lc /usr/lib/libodbc.so
/usr/bin/ld: cannot find -llbHook
collect2: ld returned 1 exit status
make: *** [lbDB.so] Fehler 1

LD_LIBRARY_PATH is set properly and the required library is also at
the expected place.

What's wrong ?

Thanks

Lothar
 

Lesen sie die antworten

#1 Lothar Behrens
14/04/2008 - 21:39 | Warnen spam
On 14 Apr., 21:24, Lothar Behrens wrote:
Hi,




Ehhm sorry,

is ja deutsche Gruppe :-)

Also nochmal in deutsch:

Ich habe auf meinem Mac PPC Debian Etch frisch installiert und kann
meine Quellen kompilieren - bis zu dem Linker Fehler.

Dies ist mein Befehl zum kompilieren:

gcc-4.1 -shared -WL,soname,lbDB.so.0 -o lbDB.so.0.0.1 lbDB.o -ldl -
lstdc++ -L/home/lothar/lib -llbHook -lc /usr/lib/libodbc.so
/usr/bin/ld: cannot find -llbHook
collect2: ld returned 1 exit status
make: *** [lbDB.so] Fehler 1

LD_LIBRARY_PATH ist korrekt gesetzt und die benötigte Library ist auch
an Ihrem Platz

Was ist falsch ?

Danke,

Lothar

I have freshly installed Debian Etch on PPC and could compile my
source (partly to the first linker error :-).

This is the command to compile:

gcc-4.1 -shared -WL,soname,lbDB.so.0 -o lbDB.so.0.0.1 lbDB.o -ldl -
lstdc++ -L/home/lothar/lib -llbHook -lc /usr/lib/libodbc.so
/usr/bin/ld: cannot find -llbHook
collect2: ld returned 1 exit status
make: *** [lbDB.so] Fehler 1

LD_LIBRARY_PATH is set properly and the required library is also at
the expected place.

What's wrong ?

Thanks

Lothar

Ähnliche fragen