Re: TclKit, create standalone EXE, add Tcl library to Executable, Tcl_FSRegister?

From: Bob Techentin (techentin.robert_at_mayo.edu)
Date: 01/19/04


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/


Relevant Pages

  • Re: Different version Access
    ... I will have my first MDB in 2000 and then follow your steps ... Libraries are code-add-ins that provide additional functionality. ... way to break your database. ... If it compiles after the library is unchecked, ...
    (microsoft.public.access.modulesdaovba)
  • Re: TIP#308 Published: Tcl Database Connectivity (TDBC)
    ... Tcl's database access has for years been in a mild state of disarray. ... The trouble is not that Tcl can't talk to databases. ... "doesn't Tcl have anything like JDBC?" ... specifies a "connection string" to specify the database instance, ...
    (comp.lang.tcl)
  • TIP#308 Published: Tcl Database Connectivity (TDBC)
    ... This TIP defines a common database access interface for Tcl scripts. ... regarding the need for a "Tcl database connectivity layer" in the Tcl ...
    (comp.lang.tcl)
  • why should i use tcl?
    ... i'd like to ask about tcl. ... while database and communication may be left common to all ... this requirement makes the use of embeddable scripting language the best ... the sripting language i'd like to use should fit some requirements. ...
    (comp.lang.tcl)
  • Re: Do header files really serve a useful purpose?
    ... > Long compiles would be a thing of the past, immediate access to symbols, ... > functions, classe, etc. would be available in the editor. ... > I'm amazed that new language after new language continues to use the bad old ... database that's hidden behind some GUI. ...
    (comp.lang.cpp)