Thread: Re: Win32 mingw libpq.dll

Re: Win32 mingw libpq.dll

From
"Magnus Hagander"
Date:
> > I am not posting to a newsgroup because I don't have
> membership in any
> > but -general and this seems more -specific.
> >
> > I have msys and mingw working fine.
> >
> > I want to try out libpqxx but can't build it without having libpq
> > installed.  So, I tried downloading postgresql 7.4.1 source and
> > extracting it in my msys install under /usr/local/. Then I did
> > ./configure --without-zlib, then cd to src/interfaces/libpq and did
> > make.  All goes fine, but I end up with only libpq.a.
> >
> > What do I need to do (short of buying MS Visual Studio .NET) to get
> > libpq.dll to build?
>
> I don't know the the difference between a *.a and a *.dll.
> Can any Win32 guys can answer this?

*.a is a static library (.lib in the MS world)
*.dll is a dynamic library (.so in the unix world)

I'm not (ATM) using the client side libpq compiled with mingw at the
moment (still using an older "proven working" build, to make sure the
client is not to blame for the win32 errors showing up), so I can't help
you on why it doesn't build.


//Magnus