pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen Dzhumerov <gamehack@1nsp1r3d.co.uk>
To: pgsql-interfaces@postgresql.org
Subject: Compiling/Linking on win32
Date: Mon, 13 Mar 2006 18:27:38 +0000
Message-ID: <4415B99A.3090404@1nsp1r3d.co.uk> (raw)

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



Message-ID: <4415B99A.3090404@1nsp1r3d.co.uk>
Permalink:  ../4415B99A.3090404@1nsp1r3d.co.uk/
Also on:    postgresql.org/message-id/4415B99A.3090404@1nsp1r3d.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gamehack@1nsp1r3d.co.uk
  Subject: Re: Compiling/Linking on win32
  In-Reply-To: <4415B99A.3090404@1nsp1r3d.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox