[Libpqxx-general] Building the cvs version with Visual Studio 9 - fix for pipeline.cxx
Jeroen Vermeulen
jtv at xs4all.nl
Wed Jun 18 15:58:29 UTC 2008
Richard B. Kreckel wrote:
> I'm seeing the same problem with current SVN and g++-4.1.1. Regarding
> the definitino of PQXX_HAVE_DISTANCE: it goes awat if I define it, but
> it also appears like <pqxx/config.h> does not get included when
> pipeline.cxx is being compiled. Here's the compiler error message:
It's not supposed to be included directly. This config item should go
into pqxx/config-compiler-internal.hxx (where indeed I do see it) and
that is included into src/pipeline.cxx through pqxx/compiler-internal.hxx.
Could it be that you are either using an older configure script, or
getting some different failure while the configure script compiles its
test program to see if you have std::distance()?
In any case I think I'll have to build a more careful workaround that
doesn't conflict with an existing std::distance() if detection fails.
Shouldn't be hard.
Jeroen
More information about the Libpqxx-general
mailing list