Compiling/Linking on win32

From: Milen Dzhumerov <gamehack(at)1nsp1r3d(dot)co(dot)uk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Compiling/Linking on win32
Date: 2006-03-13 18:27:38
Message-ID: 4415B99A.3090404@1nsp1r3d.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi all,

I have two compilers on my win32 installations - MinGW and VS.NET2003.
If I try to compile a libpq client with gcc using the following line
gcc main.c libpq.a -I../include -o test
It compiles fine but when I try to run it, it asks for libpq.dll (but I
wanted to link statically libpq.a in). And I have no clue how to set up
VS to build libpq applications. Any pointers are greatly appreciated.

Regards,
gamehack

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2006-03-13 21:28:38 Re: [PATCHES] Proposed p.tch for error locations
Previous Message Tom Lane 2006-03-13 16:08:30 Re: Proposed p.tch for error locations