From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Amit Padgaonkar" <amit(at)nsat(dot)co(dot)jp> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Cant load pgtclsh library into application |
Date: | 2001-11-27 16:11:02 |
Message-ID: | 19220.1006877462@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-interfaces pgsql-patches |
"Amit Padgaonkar" <amit(at)nsat(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Francesco Lunelli | 2001-11-27 17:01:18 | JDBC driver problems with tomcat |
Previous Message | Tom Lane | 2001-11-27 16:06:06 | Re: Documentation gap: Perl interfaces |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-11-27 18:31:40 | Can a windows DLL have more than one process attached? |
Previous Message | Tom Knowles | 2001-11-27 14:05:52 | Linux libpq dbupdates |
From | Date | Subject | |
---|---|---|---|
Next Message | Ross J. Reedstrom | 2001-11-27 16:30:25 | Re: Support for QNX6, POSIX IPC and PTHREAD-style locking |
Previous Message | Tom Lane | 2001-11-27 15:49:31 | Re: Support for QNX6, POSIX IPC and PTHREAD-style locking |