Обсуждение: C++ Question

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

C++ Question

От
root
Дата:
Hello All,

I have just finally gotten PostgreSQL 7.0 installed on my Mandrake Linux
box by using the RPM's in the distribution and seem to be having a small
problem.

I am getting some errors when I try to compile up the examples in the
libpg++ directory.

Could someone please shoe me a SIMPLE make file for a C++ program to
compile outside of this directory structure.

For example I am making a directory called "test" and want to compile an
example.cc program from there.

So far I have had not luck in getting any these programs to completely
compile.

Cheers,
Lonnie



Re: C++ Question

От
"J. T. Vermeulen"
Дата:
On Wed, 21 Feb 2001, root wrote:

> I am getting some errors when I try to compile up the examples in the
> libpg++ directory.

These files are somewhat out of date.  For starters, edit the Makefile to
change 

HEADERDIR= /usr/local/pgsql/include

to

HEADERDIR=/usr/include/postgresql


HTH,

Jeroen



Re: C++ Question

От
Justin Clift
Дата:
Hi Lonnie,

The RPM's that come with the Mandrake Linux 7.2 distribution are
DANGEROUS.  Don't use them.  See http://techdocs.postgresql.org

For development I'd honestly recommend you install from the source code.

Regards and best wishes,

Justin Clift
Database Administrator

root wrote:
> 
> Hello All,
> 
> I have just finally gotten PostgreSQL 7.0 installed on my Mandrake Linux
> box by using the RPM's in the distribution and seem to be having a small
> problem.
> 
> I am getting some errors when I try to compile up the examples in the
> libpg++ directory.
> 
> Could someone please shoe me a SIMPLE make file for a C++ program to
> compile outside of this directory structure.
> 
> For example I am making a directory called "test" and want to compile an
> example.cc program from there.
> 
> So far I have had not luck in getting any these programs to completely
> compile.
> 
> Cheers,
> Lonnie


Re: Re: C++ Question

От
Thomas Lockhart
Дата:
> The RPM's that come with the Mandrake Linux 7.2 distribution are
> DANGEROUS.  Don't use them.  See http://techdocs.postgresql.org
> For development I'd honestly recommend you install from the source code.

Hmm. I'm not certain why we would characterize them as DANGEROUS, since
we itemize the two known issues and then just to CYA someone added "...
and other problems." even though afaik there are none. The date/time
rounding problem is only for output, and, for example, upgrading from
the default Mandrake RPM set to the one at ftp.postgresql.org should be
sufficient to fix the problem (the database contents will be undamaged).

There are 7.0.2 RPMs with both of these particular issues fixed
available at ftp.postgresql.org. I *haven't* tried to do development
with them (at least for more than a minute or two) and I'm not certain
that there is a complete set of header files available for development.
That would be an issue for all other RPM distros too, so perhaps there
is more info on those.

btw, I have had trouble building the 7.0.3 RPM due to a really annoying
disappearing file in the postgresql perl installation process.
                      - Thomas