beeender commented on PR #612: URL: https://github.com/apache/madlib/pull/612#issuecomment-1833556214
> Here is the error. > > ``` > [ 65%] Building CXX object src/ports/greenplum/6/CMakeFiles/madlib_greenplum_6.dir/__/__/__/modules/assoc_rules/assoc_rules.cpp.o > In file included from /usr/include/c++/11/array:35, > from /tmp/build/27bbdacd/madlib_src/src/ports/greenplum/dbconnector/../../postgres/dbconnector/dbconnector.hpp:121, > from /tmp/build/27bbdacd/madlib_src/src/ports/greenplum/dbconnector/dbconnector.hpp:38, > from /tmp/build/27bbdacd/madlib_src/src/modules/assoc_rules/assoc_rules.cpp:11: > /usr/include/c++/11/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. > 32 | #error This file requires compiler and library support \ > | ^~~~~ > ``` > > I think I can work around it by adding -DCXX11=True to the cmake command. https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html maybe specify the C++ version by `set_property(TARGET tgt PROPERTY CXX_STANDARD 11)` Different OS may have different default values. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@madlib.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org