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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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