Sharing data between Tcl packages implemented in C

From: Jon Kneller (kneller_at_uk.ibm.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 14:36:47 +0100

I have 2 seperate Tcl packages, both implemented in C and compiled to
seperate shared object files. I want them to be able to share some
persistent data - a linked list. Unfortunately, one of the packages is also
compiled into standalone C programs, and as such I cannot presume access to
the other package, or to any Tcl commands. I would like the data to be
accessible if either one, or both of, the packages are loaded.

Can I do this without compiling into one shared object file?

- Jon



Relevant Pages

  • Re: Desktop Collaboration
    ... > projects related to desktop development into a single project, ... the ability to select to include KDE and Gnome ... > binaries, libraries, etc. to make those packages run, in addition to ... a choise exists when compiling a program. ...
    (alt.os.linux)
  • Re: Getting started with FreeBSD
    ... complaining about compiling stuff, but you probably used ... You can get it going by installing the `bin' collection of packages from ... You can always install portsnap and portupgrade. ... The second tool can upgrade your installed `ports and packages', ...
    (freebsd-questions)
  • Re: compiling
    ... > applications of interest do not have RPM packages. ... while compiling the latest kernel with gcc 3.3). ... run old games in dosbox without the installation installing old libraries in ... libraries, ldconfig, and configure as well as some C mostly ...
    (alt.linux)
  • Re: Produce identical packages for checksum comparison?
    ... Also if say there was an option when compiling ports to produce files ... filesystem or archives to change the timestamps of package files, ... A hack for the fact that packages are using tar files. ... Why would the build tools be injecting random numbers into binaries? ...
    (freebsd-questions)
  • [SLE] Rebuilding the SUSE src.rpm for KDE3.2
    ... All are with the building of the resulting rpms - ... compiling goes on, but then ends with: ... made sure they are all installed as well as their -devel packages. ... Bad exit status from /var/tmp/rpm-tmp.12911 (%install) ...
    (SuSE)