[
https://issues.apache.org/jira/browse/PROTON-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16203702#comment-16203702
]
Jiri Daněk edited comment on PROTON-1630 at 10/13/17 3:55 PM:
--
[~justi9]] nixos, any problems with that version? It has approx 10 versions of
gcc ranging from 4.5.4 to 7.2.0. Default is some 6.x.y, I think.
Anyways, happens with clang 4.0.1 too
{noformat}
/src/container_test.cpp.o.d -o
proton-c/bindings/cpp/CMakeFiles/container_test.dir/src/container_test.cpp.o -c
../proton-c/bindings/cpp/src/container_test.cpp
In file included from ../proton-c/bindings/cpp/src/container_test.cpp:20:
../proton-c/bindings/cpp/include/proton/default_container.hpp:31:43: error:
expected parameter declarator
typedef class container PN_CPP_DEPRECATED("Use 'proton::container'")
default_container;
^
../proton-c/bindings/cpp/include/proton/default_container.hpp:31:43: error:
expected ')'
../proton-c/bindings/cpp/include/proton/default_container.hpp:31:42: note: to
match this '('
typedef class container PN_CPP_DEPRECATED("Use 'proton::container'")
default_container;
^
../proton-c/bindings/cpp/include/proton/default_container.hpp:31:70: error:
expected function body after function declarator
typedef class container PN_CPP_DEPRECATED("Use 'proton::container'")
default_container;
^
3 errors generated
{noformat}
was (Author: jdanek):
[~justi9]] nixos, any problems with that version? It has approx 10 versions of
gcc ranging from 4.5.4 to 7.2.0. Default is some 6.x.y, I think.
> #include "proton/default_container.hpp" does not compile
>
>
> Key: PROTON-1630
> URL: https://issues.apache.org/jira/browse/PROTON-1630
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
>Affects Versions: proton-c-0.18.0
> Environment: Linux, gcc (GCC) 7.0.1 20170409 (experimental), git tip
> at commit 72b7ea0508e94aae3e5d9470293bc5c7e8250a45 (upstream/master)
> PROTON-1592 : [python] restore original tx_recv.py example
>Reporter: Jiri Daněk
>Assignee: Justin Ross
>
> Add the following include to your application, or say {{container_test.cpp}}
> proton file.
> {code}
> #include "proton/default_container.hpp"
> {code}
> Attempt to compile and behold the error
> {noformat}
> In file included from
> /home/jdanek/Work/repos/qpid-proton/proton-c/bindings/cpp/src/container_test.cpp:21:0:
> /home/jdanek/Work/repos/qpid-proton/proton-c/bindings/cpp/include/proton/default_container.hpp:31:42:
> error: typedef ‘proton::PN_CPP_DEPRECATED’ is initialized (use decltype
> instead)
> typedef class container PN_CPP_DEPRECATED("Use 'proton::container'")
> default_container;
> ^
> make[3]: ***
> [proton-c/bindings/cpp/CMakeFiles/container_test.dir/build.make:63:
> proton-c/bindings/cpp/CMakeFiles/container_test.dir/src/container_test.cpp.o]
> Error 1
> make[2]: *** [CMakeFiles/Makefile2:1609:
> proton-c/bindings/cpp/CMakeFiles/container_test.dir/all] Error 2
> make[1]: *** [CMakeFiles/Makefile2:1621:
> proton-c/bindings/cpp/CMakeFiles/container_test.dir/rule] Error 2
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org