Hi,

I am attempting to compile proton and the C++ binding using GCC 3.4 and
get the following error when compiling the C++ bindings. (compiler flags
have been removed in proton-c/CMakeLists.txt: -pedantic-errors
-Wno-variadic-macros)

> [ 33%] Building CXX object 
> proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/acceptor.cpp.o
> In file included from 
> /tmp/qpid-proton-0.12.0/proton-c/bindings/cpp/src/contexts.hpp:28,
>                  from 
> /tmp/qpid-proton-0.12.0/proton-c/bindings/cpp/src/acceptor.cpp:26:
> /tmp/qpid-proton-0.12.0/proton-c/bindings/cpp/include/proton/container.hpp:129:
>  error: declaration of `void proton::container::link_options(const 
> proton::link_options&)'
> /tmp/qpid-proton-0.12.0/proton-c/bindings/cpp/include/proton/link_options.hpp:60:
>  error: changes meaning of `link_options' from `class proton::link_options'
> make[2]: *** 
> [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/acceptor.cpp.o] 
> Error 1
> make[1]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 
> 2

From what I understand, this is due to a clash between the class
proton::link_options and the method proton::container::link_options
which cannot have the same name. 

Do you have an ideas for how I could make this compile with changing
the API of proton::container?

Thanks,
Alexandre
*******************************

This e-mail contains information for the intended recipient only. It may 
contain proprietary material or confidential information. If you are not the 
intended recipient you are not authorised to distribute, copy or use this 
e-mail or any attachment to it. Murex cannot guarantee that it is virus free 
and accepts no responsibility for any loss or damage arising from its use. If 
you have received this e-mail in error please notify immediately the sender and 
delete the original email received, any attachments and all copies from your 
system.

Reply via email to