| От | Randall W. Barrett |
|---|---|
| Тема | Re: [INTERFACES] Question about libpq++ |
| Дата | |
| Msg-id | Pine.SOL.3.96.990127095559.22084A-100000@viper обсуждение |
| Ответ на | Question about libpq++ ("Alexey V. Meledin" <cureman@pia.ru>) |
| Список | pgsql-interfaces |
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 <stdlib.h>
> #include <libpq++.h>
> 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
>
>
>
>
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера