Thread: Compiling VC with pq.dll?
Hi all, Is there a way to compile a Visual Studio program with PQ.DLL? I fully realize that the resulting file will require cygwin in order to run. I'm trying to build an oledb driver for PGSql. The current project to do that on the borg has no files released, and no response from the developers (are they here, BTW?). I prefer to have that project use the PQ.DLL file, instead of reimplementing the protocol myself (the way the odbc driver seems to have done). I fully realize that this means that installing the resulting file will require cygwin on the machine. However, in order to use a DLL in Windows, one needs a .lib file that has the DLL's exports. Such a file is not available in the standard Postgresql Cygwin installation. Another problem is that the DLL seems to be provided by the postgresql package. This means that I cannot later install the oledb driver without also installing postgresql, even if it only needs to connect to a remote machine. Am I missing something awfully basic here? If not, how do I generate the .lib file necessary for linking with pq.dll? Many thanks, Shachar -- Shachar Shemesh Open Source integration & consulting Home page & resume - http://www.shemesh.biz/
Shachar Shemesh writes: > > Is there a way to compile a Visual Studio program with PQ.DLL? MSVC questions are a little off topic on a Cygwin list but .... In the Postgres source distribution see 'src\interfaces\libpq\win32.mak' HTH Norman
> Am I missing something awfully basic here? If not, how do I > generate the .lib file necessary for linking with pq.dll? Very basic :-P Check out: http://www.postgresql.org/docs/7/static/install-win32.htm Cheers, Claudio --- Certain disclaimers and policies apply to all email sent from Memetrics. For the full text of these disclaimers and policies see <a href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em ailpolicy.html</a>
Claudio Natoli wrote: >>Am I missing something awfully basic here? If not, how do I >>generate the .lib file necessary for linking with pq.dll? >> >> > >Very basic :-P > >Check out: http://www.postgresql.org/docs/7/static/install-win32.htm > >Cheers, >Claudio > > While solving my immediate problem beyond my expectations, this means that the resulting pq.dll is not a cygwin product, and thus my question becomes off topic. Thank you everyone for the quick reply. That worked great. Shachar -- Shachar Shemesh Open Source integration & consulting Home page & resume - http://www.shemesh.biz/