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

Re: Libpq.dll: File not recognized

From: "Bidski" <bidski(at)bigpond(dot)net(dot)au>
To: "John R Pierce" <pierce(at)hogranch(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Libpq.dll: File not recognized
Date: 2010-06-30 22:40:16
Message-ID: 7E66FF806DC545B7B300B0DD35CB731F@Panda (view raw or flat)
Thread:
Lists: pgsql-bugs
John R Pierce <pierce(at)hogranch(dot)com> writes:
> wild guess says your project is 64 bit, but libpq.dll is 32 bit.

Why would there be a 32bit dll in the 64bit pre-built package?

Regards
Bidski

--------------------------------------------------
From: "John R Pierce" <pierce(at)hogranch(dot)com>
Sent: Thursday, July 01, 2010 8:34 AM
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: [BUGS] Libpq.dll: File not recognized

> On 06/30/10 3:23 PM, Bidski wrote:
>> Hi all,
>> I downloaded the "one-click" installer for PostgreSQL 9.0 beta2 for 
>> Windows x64 (postgresql-9.0.0-beta2-windows-x64.exe) and installed it 
>> on my Windows 7 64 bit system. Installation seemed to go off without a 
>> hitch, but when I tried to link to libpq in my project I received the 
>> following error.
>>
>>     C:\Program Files\PostgreSQL\lib/libpq.dll: file not recognized: 
>> File format not recognized
>>
>>     collect2: ld returned 1 exit status
>>
>> I originally thought that this might have something to do with the use 
>> of different compilers/linkers (compiler/linker that I am using 
>> compared to the one used with to build libpq), but now Im not so sure.
>>
>> Some system info.....
>>
>> OS: Windows 7 64-bit
>>
>> MSYS ver: 1.0.14
>>
>> MinGW ver: 4.5.0
>>
>> Make ver: GNU make 3.81
>>
>> If it matters ..... My IDE is Eclipse Galileo and I am compiling my 
>> project using the MinGW toolchain.
>>
>>
> 
> wild guess says your project is 64 bit, but libpq.dll is 32 bit.
> 
> 
> 
> 
> 
> -- 
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
> 


In response to

Responses

pgsql-bugs by date

Next:From: John R PierceDate: 2010-06-30 22:51:04
Subject: Re: Libpq.dll: File not recognized
Previous:From: John R PierceDate: 2010-06-30 22:34:25
Subject: Re: Libpq.dll: File not recognized

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