X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0585ED1DAB9 for ; Wed, 11 Feb 2004 16:30:28 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 83538-10 for ; Wed, 11 Feb 2004 12:30:05 -0400 (AST) Received: from smtp-out5.xs4all.nl (smtp-out5.xs4all.nl [194.109.24.6]) by svr1.postgresql.org (Postfix) with ESMTP id 75B8FD1DA5F for ; Wed, 11 Feb 2004 12:30:05 -0400 (AST) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.21.2]) by smtp-out5.xs4all.nl (8.12.10/8.12.10) with ESMTP id i1BGU1n1094451; Wed, 11 Feb 2004 17:30:01 +0100 (CET) Received: from xs1.xs4all.nl (jtv@localhost.xs4all.nl [127.0.0.1]) by xs1.xs4all.nl (8.12.10/8.12.9) with ESMTP id i1BGTxBT097760; Wed, 11 Feb 2004 17:29:59 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: (from jtv@localhost) by xs1.xs4all.nl (8.12.10/8.12.9/Submit) id i1BGTwlf097757; Wed, 11 Feb 2004 17:29:58 +0100 (CET) (envelope-from jtv) Date: Wed, 11 Feb 2004 17:29:58 +0100 From: "Jeroen T. Vermeulen" To: Daniel Gerardo Lucero Baylon Cc: pgsql-interfaces@postgresql.org Subject: Re: Libpq linker error Message-ID: <20040211162958.GE94664@xs4all.nl> Mail-Followup-To: Daniel Gerardo Lucero Baylon , pgsql-interfaces@postgresql.org References: <20040211154604.41382.qmail@web41204.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040211154604.41382.qmail@web41204.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/13 X-Sequence-Number: 4706 On Wed, Feb 11, 2004 at 07:46:04AM -0800, Daniel Gerardo Lucero Baylon wrote: > I compiled PostgreSQL 7.3.4 libpq for Win 32 using VC++ 7 compiler. > > Compiler generates a libpq.lib file. Build a simple C program which opens and > closes a database connection. > > When try to link object program and libpq library, following error occurs: > > ibpq.lib(fe-connect.obj) : error LNK2019: unresolved external symbol > __imp__strdup referenced in function _PQconnectStart Looks like you may not be linking your program against the standard system libraries. In this example, PQconnectStart is who's complaining about a missing function--it's not the function being complained about. Jeroen