Jonathan Blitz wrote:
>>> OK, send us some output of the test suite run!
>
> The output was long and basically the same the whole way through until the
> last couple of lines where the error appears:
[... lots of harmless stuff ...]
> c:\libpqxx\include\pqxx\util.h(23) : fatal error C1021: invalid preprocessor
> command 'warning'
It's complaining about the #warning line in:
#if defined(PQXX_HAVE_CPP_WARNING)
#warning "Deprecated libpqxx header included. Use headers without '.h'"
#elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE)
#pragma message("Deprecated libpqxx header included. Use headers
without '.h'")
#endif
But the config-public-compiler.h that is supplied with libpqxx for
VS.NET 2003 does not have PQXX_HAVE_CPP_WARNING defined, while it DOES
have PQXX_HAVE_CPP_PRAGMA_MESSAGE defined. So either your
config-public-compiler.h was not the one coming from
config/sample-headers/compiler/VisualC++.NET-2003, or the compiler
parses the #warning even though . I took the liberty of installing the
VC++ 2005 express edition and testing if it would complain about this:
#if defined(FOO)
#warning "Bar"
#endif
but it compiles this just fine, so I guess your config-*-compiler.h
files are not the right ones. Copy them over from
config/sample-headers/compiler/VisualC++.NET-2003 to include/pqxx and
try again!
Cheers,
Bart
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general