Hi Dmitriy, > Hi, I'm trying to compile qpid cpp from M4 beta: > http://people.apache.org/~rhs/qpid-incubating-M4-beta/ > and getting following error:
Ok... Do you maybe have the rest of the build output, particularly the beginning? > g++ -DHAVE_CONFIG_H -I. -Igen -I./gen -Werror -pedantic -Wall -Wextra > -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long > -Winvalid-pch -Wno-system-headers -Woverloaded-virtual > -I/opt/home/drpdev/qpid-tools/include -MT qpid/acl/Acl.lo -MD -MP -MF > qpid/acl/.deps/Acl.Tpo -c qpid/acl/Acl.cpp -fPIC -DPIC -o > qpid/acl/.libs/Acl.o > In file included from ./qpid/framing/AMQFrame.h:29, > from ./qpid/framing/amqp_framing.h:22, > from ./qpid/framing/FrameSet.h:23, > from ./qpid/broker/MessageAdapter.h:27, > from ./qpid/broker/Message.h:26, > from ./qpid/broker/Consumer.h:24, > from ./qpid/broker/Queue.h:25, > from ./qpid/broker/Deliverable.h:24, > from ./qpid/broker/Exchange.h:26, > from ./qpid/broker/DirectExchange.h:26, > from ./qpid/broker/Broker.h:27, > from qpid/acl/Acl.cpp:22: > ./qpid/framing/BodyHolder.h:65: error: `template<class T> typename > qpid::framing::DisableInPlace<T, qpid::framing::BodyHolder&>::type > qpid::framing::BodyHolder::operator=(const T&)' and `template<class > InPlace> typename qpid::framing::EnableInPlace<InPlace, > qpid::framing::BodyHolder&>::type > qpid::framing::BodyHolder::operator=(const InPlace&)' cannot be > overloaded > ./qpid/framing/Blob.h: In instantiation of `qpid::framing::Blob<148u, > qpid::framing::AMQBody>': > ./qpid/framing/BodyHolder.h:83: instantiated from here > ./qpid/framing/Blob.h:172: error: `template<class T> typename > qpid::framing::DisableInPlace<T, qpid::framing::Blob<Size, > BaseType>&>::type qpid::framing::Blob::operator=(const T&) [with T = > T, unsigned int Size = 148u, BaseType = qpid::framing::AMQBody]' and > `template<class InPlace> typename > qpid::framing::EnableInPlace<InPlace, qpid::framing::Blob<Size, > BaseType>&>::type qpid::framing::Blob::operator=(const InPlace&) [with > InPlace = InPlace, unsigned int Size = 148u, BaseType = > qpid::framing::AMQBody]' cannot be overloaded > > Compiler version: > g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > > Do I need to adjust some CXX flags? What hardware are you running on? Try deleting: qpid/cpp/src/generate_MaxMethodBodySize_h qpid/cpp/src/qpid/framing/MaxMethodBodySize.h Then re-run the build. -Steve -- Steve Huston, Riverace Corporation Check out my networked programming blog at http://stevehuston.wordpress.com/
