Received: from ipk.ipk.fhg.de (ipk.ipk.fhg.de [153.96.56.2]) by hub.org (8.9.1/8.9.1) with ESMTP id KAA06379 for ; Wed, 27 Jan 1999 10:36:47 -0500 (EST) (envelope-from Ralf.Berger@ipk.fhg.de) Received: from Malibu.ipk.fhg.de by ipk.ipk.fhg.de with SMTP (PP); Wed, 27 Jan 1999 16:38:29 +0100 Received: from ipk.fhg.de ([192.102.175.184]) by Malibu.ipk.fhg.de (4.1/SMI-4.1) id AA02845; Wed, 27 Jan 99 16:40:09 +0100 Sender: ralf@ipk.fhg.de Message-Id: <36AF318A.716936CA@ipk.fhg.de> Date: Wed, 27 Jan 1999 16:32:26 +0100 From: Ralf Berger Organization: Fraunhofer IPK X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.36 i586) X-Accept-Language: de Mime-Version: 1.0 To: "Alexey V. Meledin" Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Question about libpq++ References: <6733.990127@pia.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Alexey V. Meledin" wrote: > > I've installed pgsql 6.4.2 > It includes libpq++ > I've tried to play with it... > Simply > #include > #include > int main(void) > { > PgEnv a; > a.SetEnv(NULL,NULL,NULL,NULL,NULL); > return 0; > } > > during compilation with "g++ -o pgsetenv pgsetenv.cpp > -I/usr/local/pgsql/include" I've got an error message: > /var/tmp/ccxg22111.o: Undefined symbol `___5PgEnv' referenced from text segment > .... > > What to do? > > thanks, > Q Sound's like a link problem to me. The linker say's that he can not find theses symbol. Perhaps you add the options "-L/usr/local/pgsql/lib -lpg -lpg++" to your linker options. Hope that helps. Ralf -- Fraunhofer IPK Dipl.-Inform. Ralf Berger Pascalstr. 8-9 10587 Berlin Tel.: ++49-(0)30 390 06 129 Fax.: ++49-(0)30 391 10 37 --- In anything at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away. Antoine de Saint Exupery