[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with shared librairies and linking
From: |
Antoine Duval |
Subject: |
Problem with shared librairies and linking |
Date: |
Fri, 9 May 2003 18:50:30 +0000 |
User-agent: |
KMail/1.5 |
Hi,
Could anybody can help me on the following problem ?
// compilling and installing a first library named rtpi
address@hidden rtpi]$ autoconf && automake && ./configure --prefix=/usr &&
make && make install
// everything seems to be ok
// now a prog named mlb
address@hidden rtpi]$ cd ~/mlb
address@hidden mlb]$ autoconf && automake && ./configure --prefix=/usr
address@hidden mlb]$ make
[...]
g++ -o mlb [*.o] -laudio -lsmp -lMagick -lMagick++ -ltcl8.4 -lfreetype -lttf
-lrtpi
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../librtpi.so: undefined
reference to `TclTimerManager::Tcl_CreateTimerHandler(int, void (*)(void*),
void*)'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../librtpi.so: undefined
reference to `TclTimerManager::Tcl_DeleteTimerHandler(long)'
collect2: ld returned 1 exit status
make: *** [mlb] Erreur 1
// there something wrong here
// but i link with rtpi and rtpi has been previously linked with tcl8.4 which
provied thoses functions.
address@hidden mlb]$ cd ~/rtpi
address@hidden rtpi]$ cat Makefile.am | grep LIBADD
librtpi_la_LIBADD = -ltcl8.4
address@hidden rtpi]$ ldd /usr/lib/librtpi.so
libtcl8.4.so => /usr/lib/libtcl8.4.so (0x40067000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40100000)
[...]
address@hidden rtpi]$ objdump -t /usr/lib/libtcl8.4.so | grep
Tcl_CreateTimerHandler
0006fabe g F .text 000000f2 Tcl_CreateTimerHandler
Any idea ?
Antoine
- Problem with shared librairies and linking,
Antoine Duval <=