Re: config.h name clash
От
Tomasz Wegrzanowski
Тема
Re: config.h name clash
Дата
Msg-id
20010530154408.A367@tavaiah
Ответ на
Re: config.h name clash (Peter Eisentraut)
Список
Дерево обсуждения
config.h name clash Tomasz Wegrzanowski <taw@users.sourceforge.net>
Re: config.h name clash Peter Eisentraut <peter_e@gmx.net>
Re: config.h name clash Tomasz Wegrzanowski <taw@users.sourceforge.net>
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 in your compiler flags.
That won't work.
program.c:
#include "config.h"
#includes
/libpq++.h:
#include "libpq++/pgconnection.h"
/libpq++/pgconnection.h:
#include "config.h"
Lines `#include "config.h"' must include different files,
preferably in right order.
Both `-I. -I' and `-I -I.'
includes only one of `config.h's twice.В списке pgsql-bugs по дате отправления