BUG #3917: Compilation error on VC8.0 - Mailing list pgsql-bugs

From Olessia
Subject BUG #3917: Compilation error on VC8.0
Date
Msg-id 200801311548.m0VFm5cI038696@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3917: Compilation error on VC8.0
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3917
Logged by:          Olessia
Email address:      soukhareva@pcigeomatics.com
PostgreSQL version: 8.2.6
Operating system:   Windows XP
Description:        Compilation error on VC8.0
Details:

While compiling libpqxx-2.6.9 on VC8.0 the following error occurs:

c:\tools\libpqxx-2.6.9\include\pqxx\trigger.hxx(70) : error C2039:
'disable_noticer' : is not a member of 'pqxx::internal'


A successful build was achieved by modifying
libpqxx-2.6.9\include\pqxx\connection_base.hxx file by brining 'class
PQXX_LIBEXPORT disable_noticer' into the internal namespace.


from:
--------------------------------------------------------
...
/// Temporarily disable the notice processor
class PQXX_LIBEXPORT disable_noticer : scoped_noticer
{
public:
  explicit disable_noticer(connection_base &c) :
    scoped_noticer(c, new nonnoticer) {}
};

namespace internal
{
...
} // namespace pqxx::internal
-------------------------------------------------------

to:
-------------------------------------------------------
...
namespace internal
{
/// Temporarily disable the notice processor
class PQXX_LIBEXPORT disable_noticer : scoped_noticer
{
public:
  explicit disable_noticer(connection_base &c) :
    scoped_noticer(c, new nonnoticer) {}
};
...
} // namespace pqxx::internal

-------------------------------------------------------

pgsql-bugs by date:

Previous
From: "Hubert FONGARNAND"
Date:
Subject: BUG #3916: type of "xxxx" does not match that when preparing the plan
Next
From: Tom Lane
Date:
Subject: Re: BUG #3917: Compilation error on VC8.0