Skip site navigation (1) Skip section navigation (2)

Re: Cant load pgtclsh library into application

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 (view raw or flat)
Thread:
Lists: pgsql-docspgsql-interfacespgsql-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

In response to

Responses

pgsql-docs by date

Next:From: Francesco LunelliDate: 2001-11-27 17:01:18
Subject: JDBC driver problems with tomcat
Previous:From: Tom LaneDate: 2001-11-27 16:06:06
Subject: Re: Documentation gap: Perl interfaces

pgsql-patches by date

Next:From: Ross J. ReedstromDate: 2001-11-27 16:30:25
Subject: Re: Support for QNX6, POSIX IPC and PTHREAD-style locking
Previous:From: Tom LaneDate: 2001-11-27 15:49:31
Subject: Re: Support for QNX6, POSIX IPC and PTHREAD-style locking

pgsql-interfaces by date

Next:From: Tom LaneDate: 2001-11-27 18:31:40
Subject: Can a windows DLL have more than one process attached?
Previous:From: Tom KnowlesDate: 2001-11-27 14:05:52
Subject: Linux libpq dbupdates

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group