Re: TclKit, create standalone EXE, add Tcl library to Executable, Tcl_FSRegister?
From: Bob Techentin (techentin.robert_at_mayo.edu)
Date: 01/19/04
- Next message: Bob Techentin: "Re: Tk support for 'plot' command and widget?"
- Previous message: mac a cody: "Re: what happened to palmTCL"
- In reply to: Torsten Mohr: "TclKit, create standalone EXE, add Tcl library to Executable, Tcl_FSRegister?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 19 Jan 2004 08:22:46 -0600
"Torsten Mohr" <tmohr@s.netic.de> wrote in message
news:budktr$34c$1@schleim.qwe.de...
>
> i can create a C file that compiles and links against
> a (dynamic) Tcl DLL.
>
> I now link it against a static LIB, but initialisation
> code does not find "init.tcl" then.
>
> So to make it all work i did:
> - Write a program that recursively descends through a directory
> and adds each file it finds to a database. This database is
> added to the Executable. I can access the files in that
> database.
> - Rename Tcl's command "source" to "old_source"
> - Create a new command "source" that looks if it finds the
> file to "source" in the database and Tcl_Eval()s it.
> - Set the variables "tcl_library" and "tk_library" to the
> internal database.
AAAaaacck! That sounds like waaayy too much work. Linking Tcl
libraries is done all the time, and once you've got the link, you
shouldn't have to go through all these hoops to get it working.
But I'm not 100% clear on what you're trying to accomplish. Are you
trying to add compiled C code to a tclkit? Or do you have a starkit
application which uses compiled C files? Are you trying to link your
C code against a static Tcl library, and include that into a starkit?
Can you be a little more specific about what plaform you are using,
and specifically which libraries you're linking when it can't find
'init.tcl'?
Thanks,
Bob
-- Bob Techentin techentin.robert@NOSPAMmayo.edu Mayo Foundation (507) 538-5495 200 First St. SW FAX (507) 284-9171 Rochester MN, 55901 USA http://www.mayo.edu/sppdg/
- Next message: Bob Techentin: "Re: Tk support for 'plot' command and widget?"
- Previous message: mac a cody: "Re: what happened to palmTCL"
- In reply to: Torsten Mohr: "TclKit, create standalone EXE, add Tcl library to Executable, Tcl_FSRegister?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|