[ https://issues.apache.org/jira/browse/PROTON-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiri Danek updated PROTON-1379: ------------------------------- Flags: Patch Labels: patch (was: ) Description: The following error prevents from compiling the cpp binding with g++ 7.0 snaphot # (off) /qpid-proton/proton-c/bindings/cpp/include/proton/container.hpp:219:48: error: 'std::function' has not been declared see complete error messages in comments below was: The following warnings prevent me from compiling proton-c with clang 4.0 snaphot # (/) /qpid-proton-fuzz/proton-c/src/tests/object.c:60:16: error: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior # (off) /test/qpid-proton/proton-c/bindings/cpp/include/proton/message.hpp:51:11: error: instantiation of function 'proton::internal::cached_map<std::basic_string<char>, proton::scalar>::cached_map' required here, but no definition is see complete error messages in comments below In output of {VERBOSE=1 make}: {noformat} cd /qpid-proton/build/proton-c/bindings/cpp && /usr/local/bin/c++ -DPN_CPP_HAS_LONG_LONG=1 -DPN_CPP_HAS_STD_PTR=1 -Dqpid_proton_cpp_EXPORTS -I/qpid-proton/build/proton-c/src -I/qpid-proton/build/proton-c/include -I/qpid-proton/proton-c/src -I/qpid-proton/proton-c/include -I/qpid-proton/proton-c/bindings/cpp/include -I/qpid-proton/proton-c/bindings/cpp/src/include -std=c++11 -fvisibility=hidden -g -fPIC -Werror -Wall -pedantic-errors -Wno-format -Wno-variadic-macros -o CMakeFiles/qpid-proton-cpp.dir/src/connection.cpp.o -c /qpid-proton/proton-c/bindings/cpp/src/connection.cpp In file included from /qpid-proton/proton-c/bindings/cpp/src/connection.cpp:25:0: /qpid-proton/proton-c/bindings/cpp/include/proton/container.hpp:219:48: error: 'std::function' has not been declared PN_CPP_EXTERN void schedule(duration, std::function<void()>); ^~~~~~~~ /qpid-proton/proton-c/bindings/cpp/include/proton/container.hpp:219:56: error: expected ',' or '...' before '<' token PN_CPP_EXTERN void schedule(duration, std::function<void()>); ^ proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/build.make:134: recipe for target 'proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/connection.cpp.o' failed {noformat} I do not understand why it did not appear with previous GCC or clang versions (I tried them also with {{CXXFLAGS="-std=c++11"}}), but the error looks real (and not just regression in GCC itself). > Compile without warnings under g++ 7.0 > -------------------------------------- > > Key: PROTON-1379 > URL: https://issues.apache.org/jira/browse/PROTON-1379 > Project: Qpid Proton > Issue Type: Bug > Components: cpp-binding > Affects Versions: 0.17.0 > Environment: Debian testing. GCC nightly build from > https://hub.docker.com/r/jdanekrh/nightly-gccgo-trunk-docker-image/ > Reporter: Jiri Danek > Assignee: Andrew Stitcher > Priority: Minor > Labels: patch > Fix For: 0.17.0 > > > The following error prevents from compiling the cpp binding with g++ 7.0 > snaphot > # (off) > /qpid-proton/proton-c/bindings/cpp/include/proton/container.hpp:219:48: > error: 'std::function' has not been declared > see complete error messages in comments below -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org