Received: from tapti.hss.hns.com (tapti.hss.hns.com [139.85.242.19]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA78960 for ; Thu, 13 Jan 2000 07:57:49 -0500 (EST) (envelope-from bbravat@hss.hns.com) From: bbravat@hss.hns.com Received: from sandesh.hss.hns.com (sandesh.hss.hns.com [139.85.242.35]) by tapti.hss.hns.com (8.8.8/8.8.8) with SMTP id SAA11573; Thu, 13 Jan 2000 18:50:35 +0530 (IST) Received: by sandesh.hss.hns.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 65256865.004627C4 ; Thu, 13 Jan 2000 18:16:17 +0530 X-Lotus-FromDomain: HSS To: Vince Vielhaber cc: docs@postgreSQL.org Message-ID: <65256865.00462574.00@sandesh.hss.hns.com> Date: Thu, 13 Jan 2000 18:16:08 +0530 Subject: Re: [DOCS] error in makefile for libpq++ examples Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Yes, I have the complete install and it is installed properly. [version is 6.5.3] Only point I wanted to mention was this: After installing the complete postgres, when one tries to compile the examples for libpq++ library which comes with the installable, using the provided Makefile then it fails to compile the example. Because in the Makefile inside directory "postgresql-6.5.3/src/interfaces/libpq++/examples", LDFLAGS option doesn't contain option -lpq {it contains only -lpq++}. To compile the example I had to add -lpq option in this Makefile. My suggestion regarding the documentation was in concern with those C++ programmers who haven't installed postgres but are using it on a system where it is installed. To help such programmer's these details such as setting of environment variable LD_LIBRARY_PATH and include directories can be added in the programmer's guide. This will surely help the new user of postgres. Cheers, Brij Vince Vielhaber on 01/13/2000 05:48:47 PM To: Brij B Ravat/HSS@HSS cc: docs@postgreSQL.org Subject: Re: [DOCS] error in makefile for libpq++ examples On Thu, 13 Jan 2000 bbravat@hss.hns.com wrote: > I just downloaded the recent postgres distribution of ver6.5.3. In its makefile > for libpq++, variable LDFLAGS should also contain -lpq option otherwise it fails > to compile the examples with gcc. > > I think it will be good idea to include information about INCLUDE directories, > LDFLAGS and also the setting of LD_LIBRARY_PATH in the html documentation in > libpq++ chapter of the programmer's manual. Are you sure you have a complete install? -lpq is part of libpq++'s build process, and LD_LIBRARY_PATH is part of the PostgreSQL installation. What version are you using? Vince. --