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 D413B9DC818 for ; Sun, 22 Jan 2006 03:38:20 -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 55415-09 for ; Sun, 22 Jan 2006 03:38:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 6ACA79DC810 for ; Sun, 22 Jan 2006 03:38:18 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 2C5AD30F00; Sun, 22 Jan 2006 08:38:17 +0100 (MET) From: "Michael" X-Newsgroups: pgsql.interfaces Subject: Re: Compiling and linking a Program interfacing with libpq.dll Date: 21 Jan 2006 23:38:10 -0800 Organization: http://groups.google.com Lines: 12 Message-ID: <1137915490.594351.230060@f14g2000cwb.googlegroups.com> References: <1136696049.793375.101010@g43g2000cwa.googlegroups.com> <2b5c484b0601091503n5583a4fcx@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: <2b5c484b0601091503n5583a4fcx@mail.gmail.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=24.21.59.234; posting-account=aVsWvg0AAABCG6-NRi8cvnfxId7jfOWN To: pgsql-interfaces@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.08 required=5 tests=[AWL=0.080] X-Spam-Score: 0.08 X-Spam-Level: X-Archive-Number: 200601/37 X-Sequence-Number: 5953 Thanks for your reply. I took me a while but, I am glad you told me to rebuild the import library. Also the part about linking against msvcrt was important. I was able rebuild the import library using the bcc32.mak file. It did something I didn't expect which was to create some of the new files with a 'b' prepended to their names such as blibpq. Anyway in the smalltalk compiler which I am using, it uses bcc32 to compile primitives and I am now able to access postgres with the methods I am writing. Thanks again!