Обсуждение: RE: Re[2]: [HACKERS] Re: [QUESTIONS] libpq++

Поиск
Список
Период
Сортировка

RE: Re[2]: [HACKERS] Re: [QUESTIONS] libpq++

От
"Sergey S. Kosyakov"
Дата:
On 26-Jun-97 Leo Shuster wrote:
>
>>But it needs some g++ comand-line options hack (at least for FreeBSD),
>>and it is not described anywhere.
>    Hmmm... I wasn't aware of that.  g++ under Linux includes
>    compiles the string class without any hacks.

My program crash with core dump if compiled without "-fexternal-templates"
But it happens only when PgEnv used like
PgEnv env("",host_name,...
that is with explicit constructor.

>
>>Moreover, it is not obvious how to use
>>e.g. PgEnv, which uses "string".
>    There are examples in every one of the example programs
>    of how PgEnv is used.  In most of my programs, I do not
>    even use PgEnv class since PgDatabase takes care of
>    all the environment setup for me.

In my distribution (postgresql-6.1.tar.gz) src/libpq++/example/* are not ever
contain PgEnv word. But I indeed need of PgEnv(...) because it is more
suitable than dinamical changing environment on various hosts

[ skipped ]
>>And there are some difficulties in using gdb with C++ templates.
>    True, but it's not impossible.  gdb seems to work pretty
>    well in my projects under Linux.

May be there are some special tricks when gdb is used for templates
classes calls tracing?


- ----------------------------------
Sergey Kosyakov
Landau Institute for Theoretical Physics
E-Mail: Sergey S. Kosyakov <ks@itp.ac.ru>
Date: 26-Jun-97
Time: 18:39:17
- ----------------------------------

------------------------------

Re[2]: [HACKERS] Re: [QUESTIONS] libpq++

От
"Leo Shuster"
Дата:
>But it needs some g++ comand-line options hack (at least for FreeBSD),
>and it is not described anywhere.
    Hmmm... I wasn't aware of that.  g++ under Linux includes
    compiles the string class without any hacks.

>Moreover, it is not obvious how to use
>e.g. PgEnv, which uses "string".
    There are examples in every one of the example programs
    of how PgEnv is used.  In most of my programs, I do not
    even use PgEnv class since PgDatabase takes care of
    all the environment setup for me.

>But it needs documentation or, at least, examples.
    Agreed.  Examples are there but the documentation is not.
    I had volunteered to update the docs a long time ago but
    had not received any information on how to do it.

>And there are some difficulties in using gdb with C++ templates.
    True, but it's not impossible.  gdb seems to work pretty
    well in my projects under Linux.

Leo

------------------------------

Re: Re[2]: [HACKERS] Re: [QUESTIONS] libpq++

От
Bruce Momjian
Дата:
> >But it needs documentation or, at least, examples.
>     Agreed.  Examples are there but the documentation is not.
>     I had volunteered to update the docs a long time ago but
>     had not received any information on how to do it.

If you don't know troff/nroff, just generate an ASCII copy of the
current man page, make your changes to a copy of that, do a diff and send
it to me.  I will integrate your changes will proper formatting.

- --
Bruce Momjian
maillist@candle.pha.pa.us

------------------------------