At Wed, 23 Sep 2015 08:40:39 -0700 (PDT) anj patnaik <
pat...@gmail.com> wrote:
>
> On Tuesday, September 22, 2015 at 4:00:10 AM UTC-4, Ralf Fassel wrote:
> > * lj <
lj...@pobox.com>
> > | To clarify:
> > >
> > | If you are talking about pgtclng on Sourceforge, I only have 32-bit
> > | DLLs in the download, since that is all I can make at present. If you
> > | are on a 64-bit Windows, you are on your own. Sorry.
> >=20
> > This is a problem only if one is using a 64 bit TCL. A 32 bit TCL will
> > run on 64 bit Windows just fine, and can use the 32-bit DLL.
> > However, I don't know the requirements for the dependent DLLs (whether
> > they are all required in 32 bit, too (would make sense IMHO)).
> >=20
> > R'
>
> Hello all,
>
> I am on a Windows 7 64-bit platform. I downloaded the pgtcl2.1.1-win32.zip =
> file from sourceforge site.=20
>
> I have the path variable pointing to the Postgres lib directory. And I do s=
> ee libpq.dll amongst a myriad of dll files there. If i remove the path to t=
> he bin directory, I get a different error: this library or dependent librar=
> y cannot be found. So putting the bin dir in the path causes that dependent=
> library error to go away, but I get this "invalid argument" error.
Are the Postgres libraries you installed 64-bit or 32-bit? Is the version of
Tcl 64-bit or 32-bit? The DLL(s) in pgtcl2.1.1-win32.zip are 32-bit. This
means you need a *32-bit* version of the Postgres libraries and a *32-bit*
version of Tcl. It is not possible to mix bit-isms. (Only under MacOSX,
which supports 'multi-arch' libraries and binaries.)
I don't know if there is a (native) MS-Windows utility like objdump, which can
be used to display the arch:
ub1204-64% i686-w64-mingw32-objdump -x /home/heller/Win32/MRRSystem-2.1.36/Win32/Installer/.libs/libdiskfree.dll | head
/home/heller/Win32/MRRSystem-2.1.36/Win32/Installer/.libs/libdiskfree.dll: file format pei-i386
/home/heller/Win32/MRRSystem-2.1.36/Win32/Installer/.libs/libdiskfree.dll
architecture: i386, flags 0x0000013b:
HAS_RELOC, EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED
start address 0x6bc81420
Characteristics 0x2106
executable
line numbers stripped
>
> Thanks.