pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gustavo Lopes <contratempo@gmail.com>
To: Michael <michael_atkisson@comcast.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Compiling and linking a Program interfacing with libpq.dll
Date: Mon, 9 Jan 2006 23:03:12 +0000
Message-ID: <2b5c484b0601091503n5583a4fcx@mail.gmail.com> (raw)
In-Reply-To: <1136696049.793375.101010@g43g2000cwa.googlegroups.com>
References: <1136696049.793375.101010@g43g2000cwa.googlegroups.com>

I think you'll need to generate the import library first (the one
included only works for gcc). Anyway, I've experienced problems when
the programs are not linked against msvcrt.dll; if you should find
your programs crashing for no apparent reason, try to use mingw (with
which you won't need to generate an import library) or vc6 with the
/MD switch.

Gustavo Lopes

On 8 Jan 2006 19:57:33 -0800, Michael <michael_atkisson@comcast.net> wrote:
> I am trying to compile, link and execute the first example in the
> Postgres 8.1.1
> manual using the libpq.dll library.  Nothing I have tried works.  I am
> using
> the free Borland Compiler 5.5.  Can any give me the command line
> parameters
> for compiling and linking a C program using this compiler.  I have
> tried everything
> I can think of, referenced the section 28.15 for compiling and linking.
>  Also I have
> searched the archives and found nothing that helped.
>
> Thanks!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly
>


--
Gustavo Lopes



view thread (3+ messages)  latest in thread

Message-ID: <2b5c484b0601091503n5583a4fcx@mail.gmail.com>
Permalink:  ../2b5c484b0601091503n5583a4fcx@mail.gmail.com/
Also on:    postgresql.org/message-id/2b5c484b0601091503n5583a4fcx@mail.gmail.com

 · 

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: contratempo@gmail.com, michael_atkisson@comcast.net
  Subject: Re: Compiling and linking a Program interfacing with libpq.dll
  In-Reply-To: <2b5c484b0601091503n5583a4fcx@mail.gmail.com>

* 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