On Mon, 2011-09-19 at 16:58 -0400, Darryl L. Pierce wrote:
> On Mon, Sep 19, 2011 at 04:39:14PM -0400, Andrew Stitcher wrote:
> > On Mon, 2011-09-19 at 16:23 -0400, Darryl L. Pierce wrote:
> > > I've enabled building QMF2 on Windows, but am stopped ATM due to
> > > the ambiguous usage of uint32_t and uint64_t. Developer Studio isn't
> > > used if the declarations want to use the boost:: or the Windows types.
> > 
> > IIRC the uint32_t and uint64_t types have to be specially defined for
> > windows because they are not in the system header files (at least for
> > Dev Studio 2008). Is it possible that somehow the QMF2 build is picking
> > them up from multiple places?
> 
> The error I see is that the usage is "ambiguous" since, at compile time,
> DevStudio is seeing uint32_t in both the boost namespace (which is
> being used in the code) and also in qpid/sys/windows/IntegerTypes.h.

I'm guessing, but is there "using namespace boost" somewhere in the
offending files? That would have the effect of bringing all encountered
boost namespace symbols into the current namespace. If so then remove
this and add individual "using boost::..." for all necessary boost
symbols. Doing this is strongly recommended for production code in any
case.

Andrew



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to