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

Re: Win32 libpq : Static Link ?

From: Brett Schwarz <brett_schwarz(at)yahoo(dot)com>
To: "Oliver D(dot)" <oliver(at)inadd(dot)com>,PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Win32 libpq : Static Link ?
Date: 2004-10-04 06:22:35
Message-ID: 20041004062235.74651.qmail@web40611.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
I was able to link statically, but I have not tried
VC7. I heard that VC7 enforces that you distribute the
RT DLL with the app. Are you having troubles running
the app on the machine you compiled on, or another
machine? If the latter, then I believe you need to
copy over msvcr70.dll as well.

For VC6, these are the libs I had to link in to get it
working (in addition to the standard ones):

libpq.lib wsock32.lib MSVCRT.lib 

I'm not even close to being a Win guru, so I am not
sure if this makes sense...I basically got it working
by trial and error :)

HTH,

    --brett

--- "Oliver D." <oliver(at)inadd(dot)com> wrote:

> I'm completely stuck with this issue. I just want to
> know if some Win32 
> developer has been able to
> links statically against libpq (using libpq.lib).
> Even if I apparently 
> could compile the static lib, the program
> that try to link against still asks for a .dll.
> 
> Any help would be appreciated.
> 
> Thank you very much.
> 
> Oliver.
> 
> 
> Le 1 oct. 04,  23:16, Oliver D. a crit :
> 
> > We are experiencing troubles trying to link
> -statically- against 
> > libpq.lib on Windows (VC++ 7).
> >
> > Our app works great when we link against libpq.dll
> but we can't get 
> > the same result
> >  with libpq.lib. The app seems to continuously ask
> for a dll.
> >
> > We have compiled 7.4.X libpq on Win32 but still
> can't get a static 
> > link.
> >
> > Have some windows experienced developers already
> been able to link 
> > against
> > libpq.lib with VC++ ?
> >
> > Thank you for your help.
> >
> > Oliver
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose
> an index scan if your
>       joining column's datatypes do not match
> 


In response to

Responses

pgsql-interfaces by date

Next:From: Oliver D.Date: 2004-10-04 08:02:52
Subject: Re: Win32 libpq : Static Link ?
Previous:From: Oliver D.Date: 2004-10-04 06:01:44
Subject: Re: Win32 libpq : Static Link ?

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