On 1 Mar 2006, Don Porter wrote:
> 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.
Thank you very much for the insight! Indeed, it was my problem : I was
using OLD version of tcl.h while linking with NEW version of libtcl.
Many thanks again for your help!
Best Regards,
Anatoliy
Received on Sun Apr 30 02:19:34 2006