Re: newbie Tcl_InitHashTable question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: newbie Tcl_InitHashTable question

From: Don Porter <dgp@email.nist.gov>
Date: Wed Mar 01 2006 - 21:24:24 CET

Anatoliy V. Volkov wrote:
> Now when trying to link that application with tk/tcl 8.4 libraries under
> SuSE 10.0 I get :
>
> namManager.o: In function `namAlloc':
> namManager.c:(.text+0x8e): undefined reference to `Tcl_InitHashTableEx'
> styManager.o: In function `styLoadElements':
> styManager.c:(.text+0x87f): undefined reference to `Tcl_InitHashTableEx'
> dlManager.o: In function `dlAlloc':
> dlManager.c:(.text+0x18e): undefined reference to `Tcl_InitHashTableEx'
...
> Could you please help me solve this problem ?

It appears that you have compiled against an 8.4 version of the
Tcl header file, tcl.h , but you are linking your program against
some older version of libtcl that lacks the Tcl_InitHashTableEx
function.

Correct your build instructions to link against the proper version
of libtcl and this problem should be solved.

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@nist.gov             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|
Received on Sun Apr 30 02:19:34 2006