Re: creating stand-alone extended tclsh



Gerald W. Lester wrote:
Will Parsons wrote:
I would like to create a tclsh with application-specific extensions. The
information on creating Tcl extensions that I have been able to obtain by
googling seems to be oriented toward creating loadable libraries, which is
not what I want - I need to create a stand-alone tclsh that incorporates
an interface to a static C application library. Any advice on how to go
about this starting from just the Tcl source distribution? (I've looked
at the sampleextension, but it only seems to create an extension library,
not an independent shell.)

There is very little reason to do what you want since loadable extensions
became possible, but is is easily doable.

So I'd like to ask why you want to do this?

Making shared libraries isn't supported on the platform I'm interested in
(QNX4), so the static linkage is due to necessity.

I'd suggest looking at how TclKits are created and also reading teh
appropriate sections of Dr. Ousterhout's book.

I'll take a look at TclKits. I used to have a copy of Ousterhout's book,
but it went missing several years ago, and since it's quite a bit out of
date now, I don't relish purchasing another copy.

- Will
.



Relevant Pages

  • Re: creating stand-alone extended tclsh
    ... information on creating Tcl extensions that I have been able to obtain by googling seems to be oriented toward creating loadable libraries, ... There is very little reason to do what you want since loadable extensions became possible, ...
    (comp.lang.tcl)
  • creating stand-alone extended tclsh
    ... I would like to create a tclsh with application-specific extensions. ... information on creating Tcl extensions that I have been able to obtain by ... googling seems to be oriented toward creating loadable libraries, ...
    (comp.lang.tcl)
  • Re: Is Forth more focused on detail rather than on concept?
    ... proprietary extensions sucks a lot. ... E.g. the VFX port for MINOS has 1500 ... The next port will have those 1500 lines again, ... far more time implementing libraries outside the kernel than time ...
    (comp.lang.forth)
  • Re: creating stand-alone extended tclsh
    ... information on creating Tcl extensions that I have been able to obtain by ... build all your custom extensions as static libraries. ...
    (comp.lang.tcl)
  • Re: enterprise ruby
    ... and IBM moved to a Java only VM. ... JRuby is somehow less-capable than MRI if it can't use C extensions? ... This applies to Java's GUI libraries (around which several frameworks ...
    (comp.lang.ruby)