Compile errors in new test program, test_store
----------------------------------------------

                 Key: QPID-2229
                 URL: https://issues.apache.org/jira/browse/QPID-2229
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.6
         Environment: Windows XP, Visual Studio 2008 (VC9)
            Reporter: Steve Huston
             Fix For: 0.6


The cpp/src/tests/test_store.cpp file gets compile errors on Windows due to 
clashing boost and global namespace types:

------ Build started: Project: test_store, Configuration: Release Win32 ------
Compiling...
test_store.cpp

C:\qpid\trunk\qpid\cpp\src\..\include\qpid/framing/FieldValue.h(140) : error 
C2872: 'uint8_t' : ambiguous symbol

        could be 
'C:\qpid\trunk\qpid\cpp\src\..\include\qpid/sys/windows/IntegerTypes.h(26) : 
unsigned char uint8_t'
        or       'C:\Program Files\boost\boost-1_40\boost/cstdint.hpp(196) : 
boost::uint8_t'
        C:\qpid\trunk\qpid\cpp\src\..\include\qpid/framing/FieldValue.h(200) : 
see reference to class template instantiation 
'qpid::framing::FixedWidthValue<width>' being compiled
        with
        [
            width=4
        ]
        C:\qpid\trunk\qpid\cpp\src\..\include\qpid/framing/FieldValue.h(214) : 
see reference to function template instantiation 'T 
qpid::framing::FieldValue::getFloatingPointValue<float,4>(void) const' being 
compiled
        with
        [
            T=float
        ]

C:\qpid\trunk\qpid\cpp\src\..\include\qpid/framing/FieldValue.h(144) : error 
C2872: 'uint8_t' : ambiguous symbol

        could be 
'C:\qpid\trunk\qpid\cpp\src\..\include\qpid/sys/windows/IntegerTypes.h(26) : 
unsigned char uint8_t'
        or       'C:\Program Files\boost\boost-1_40\boost/cstdint.hpp(196) : 
boost::uint8_t'

etc... there are similar errors for uint32_t and uint64_t. These usually come 
from doing something like:

using boost;



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to