Date: 05 Feb 1998 17:58:40 -0600 From: Dave Marquardt <marquard@zilker.net> To: freebsd-hackers@FreeBSD.ORG Subject: Re: TCL API published. Message-ID: <851zxhmwnj.fsf@localhost.zilker.net> In-Reply-To: Ruslan Shevchenko's message of "Thu, 05 Feb 1998 00:41:54 %2B0200" References: <34D8EEB0.2AF4C769@Shevchenko.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Shevchenko <Ruslan@Shevchenko.kiev.ua> writes: > Just publish TCL API (only realized functions) for my Admin System. > (http://cam.grad.kiev.ua/~rssh/admin/admin.html) > > Question: > May be create API-ized versions of tclsh and wish ? > > Will be this tools usefull for anybody ? > > Anybody know, is dynamic library loading from Tcl in run-time work in > FreeBSD ? > if work, how to do it, without generation of Tcl Interpeter for each > extension. ? Sure it works. You have to configure Tcl so it builds libtcl as a shared library, and then you can build loadable shared libraries for extensions. I've done this with Tcl-DP and Expect. You can turn these extensions into packages and bring them into your Tcl interpreter with package require packagename The pkgIndex file for the package will be read and cause a load of the extension. You can also just load the extensions directly with the "load" command. -Dave
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?851zxhmwnj.fsf>