From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Padgaonkar <amit@nsat.co.jp>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Cant load pgtclsh library into application
Date: Tue, 27 Nov 2001 11:11:02 -0500
Message-ID: <19220.1006877462@sss.pgh.pa.us> (raw)
In-Reply-To: <003801c17712$a37c17e0$e020200a@netone.co.jp>
References: <3BFABB2C.3020307@home.com>
<20011121122555.B21102@quartz.newn.cam.ac.uk>
<003801c17712$a37c17e0$e020200a@netone.co.jp>
"Amit Padgaonkar" <amit@nsat.co.jp> writes:
> I am using tcl8.3 / tk8.3 and postgreSQL 7.3 . I am not able to
> load pgtclsh library into to my TK application for giving it backend
> support.
pgtclsh is not a library, it is a prebuilt tclsh application with the
libpgtcl library already loaded into it. You can load the libpgtcl
library into your own application with the usual Tcl "load" command.
pgaccess does it like so:
if {[info exists env(PGLIB)]} {
set libpgtclpath [file join $env(PGLIB) libpgtcl]
} else {
set libpgtclpath {libpgtcl}
}
load ${libpgtclpath}[info sharedlibextension]
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, amit@nsat.co.jp, pgsql-interfaces@postgresql.org
Subject: Re: Cant load pgtclsh library into application
In-Reply-To: <19220.1006877462@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox