Received: from mail.shadow.net (mail.shadow.net [204.177.71.247]) by hub.org (8.9.1/8.9.1) with ESMTP id JAA01265 for ; Wed, 27 Jan 1999 09:58:43 -0500 (EST) (envelope-from rbarr@shadow.net) Received: from viper (rbarr@viper.shadow.net [204.177.71.9]) by mail.shadow.net (8.8.8/8.7.3) with SMTP id KAA25225; Wed, 27 Jan 1999 10:09:03 -0500 (EST) Date: Wed, 27 Jan 1999 09:57:15 -0500 (EST) From: "Randall W. Barrett" X-Sender: rbarr@viper To: "Alexey V. Meledin" cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Question about libpq++ In-Reply-To: <6733.990127@pia.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Alexey, It appears you've forgotten to link in the libpq++ library with a -l on the command line. You may also need a -L to tell the compiler where to find the library. Randy Barrett On Wed, 27 Jan 1999, 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 > > > >