X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4179E9DC9BB for ; Mon, 9 Jan 2006 19:03:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15380-03 for ; Mon, 9 Jan 2006 19:03:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by postgresql.org (Postfix) with ESMTP id 1340C9DC9A0 for ; Mon, 9 Jan 2006 19:03:09 -0400 (AST) Received: by zproxy.gmail.com with SMTP id x3so4177465nzd for ; Mon, 09 Jan 2006 15:03:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DzX1+AnuIL3x9YT/YDkBm/kwIxqs0IXxD2P8qw14RQUfC/ujJKWmYSKyXbE++rkTXRHvEjkzcnE8/7AJCHGD0KUXNN+dFea/hetn89NoNLPfecDwO32SJqt5db8+BTEQH3iGg3eiRvBRk9ZYAtVHNLDNIEicjUPekp5S9Y9xNbQ= Received: by 10.64.151.12 with SMTP id y12mr2824907qbd; Mon, 09 Jan 2006 15:03:12 -0800 (PST) Received: by 10.64.201.3 with HTTP; Mon, 9 Jan 2006 15:03:12 -0800 (PST) Message-ID: <2b5c484b0601091503n5583a4fcx@mail.gmail.com> Date: Mon, 9 Jan 2006 23:03:12 +0000 From: Gustavo Lopes To: Michael Subject: Re: Compiling and linking a Program interfacing with libpq.dll Cc: pgsql-interfaces@postgresql.org In-Reply-To: <1136696049.793375.101010@g43g2000cwa.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1136696049.793375.101010@g43g2000cwa.googlegroups.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/15 X-Sequence-Number: 5931 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 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