[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

        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 
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../ undefined 
reference to `TclTimerManager::Tcl_CreateTimerHandler(int, void (*)(void*), 
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../ 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 | grep LIBADD
librtpi_la_LIBADD = -ltcl8.4
address@hidden rtpi]$ ldd /usr/lib/ => /usr/lib/ (0x40067000) => /usr/lib/ (0x40100000)
address@hidden rtpi]$ objdump -t /usr/lib/ | grep 
0006fabe g     F .text  000000f2              Tcl_CreateTimerHandler

Any idea ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]