Re: Using Tcl_*ObjCmd in extensions
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: Using Tcl_*ObjCmd in extensions

From: Eckhard Lehmann <ecky-l@web.de>
Date: Tue Dec 20 2005 - 20:13:59 CET

Erik Leunissen wrote:
> L.S.
>
> On few occasions when writing a C based extension to Tcl, I want to call
> Tcl command procedures (i.e. the set of Tcl_*ObjCmd functions).
>
> After linking against the stubs library, symbols referring to these
> functions remain unresolved.

Did you -DUSE_TCL_STUBS ? This is necessary when linkking against the
stubs library, it prepares the code to search the functions in the
stubs table at runtime, rather than in libtcl8.x.so (tcl8x.dll).

>
> This does not "feel good". However, when dynamically loading the shared
> library, there is no complaint (which I does surprise me), and the
> library's functionality works fine.

Probably they are loaded from the Tcl shared libraries (libtcl8.x.so or
tcl8x.dll). It will continue to work unless you upgrade Tcl or try to
wrap the extension into a starkit...

Eckhard
Received on Fri Dec 23 19:02:35 2005