From owner-freebsd-hackers Thu Feb 5 15:59:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA28472 for hackers-outgoing; Thu, 5 Feb 1998 15:59:52 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from localhost.zilker.net (jump-x2-1006.jumpnet.com [207.8.67.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA28467 for ; Thu, 5 Feb 1998 15:59:45 -0800 (PST) (envelope-from marquard@zilker.net) Received: (from marquard@localhost) by localhost.zilker.net (8.8.8/8.8.3) id RAA11301; Thu, 5 Feb 1998 17:59:22 -0600 (CST) To: freebsd-hackers@FreeBSD.ORG Subject: Re: TCL API published. References: <34D8EEB0.2AF4C769@Shevchenko.kiev.ua> From: Dave Marquardt Date: 05 Feb 1998 17:58:40 -0600 In-Reply-To: Ruslan Shevchenko's message of "Thu, 05 Feb 1998 00:41:54 +0200" Message-ID: <851zxhmwnj.fsf@localhost.zilker.net> Lines: 29 X-Mailer: Quassia Gnus v0.22/XEmacs 19.16 - "Lille" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" Ruslan Shevchenko 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