Skip site navigation (1) Skip section navigation (2)

Re: config.h name clash

From: Tomasz Wegrzanowski <taw(at)users(dot)sourceforge(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: config.h name clash
Date: 2001-05-30 13:44:08
Message-ID: 20010530154408.A367@tavaiah (view raw or flat)
Thread:
Lists: pgsql-bugs
On Tue, May 29, 2001 at 10:03:49PM +0200, Peter Eisentraut wrote:
> Tomasz Wegrzanowski writes:
> 
> > My program uses autoconf and libpq++. Unfortunatelly autoconf's
> > config.h and poetgresql's config.h name-clashes and either libpq++.h
> > includes autoconf's config.h or program files include postgresql's
> > config.h
> 
> Put -I. before -I<libpq++dir> in your compiler flags.

That won't work.

program.c:
    #include "config.h"
    #includes <libpq++.h>
<libpq++dir>/libpq++.h:
    #include "libpq++/pgconnection.h"
<libpq++dir>/libpq++/pgconnection.h:
    #include "config.h"

Lines `#include "config.h"' must include different files,
preferably in right order.
Both `-I. -I<libpq++dir>' and `-I<libpq++dir> -I.'
includes only one of `config.h's twice.

In response to

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-05-30 14:33:58
Subject: dlopen() of libpsqlodbc.so fails in 7.1.2
Previous:From: Bruce MomjianDate: 2001-05-30 12:45:42
Subject: Re: a typo in Docs, 7.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group