[ https://issues.apache.org/jira/browse/ARROW-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661891#comment-17661891 ]
Rok Mihevc commented on ARROW-4869: ----------------------------------- This issue has been migrated to [issue #21379|https://github.com/apache/arrow/issues/21379] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [C++] Use of gmock fails in compute/kernels/util-internal-test.cc > ------------------------------------------------------------------ > > Key: ARROW-4869 > URL: https://issues.apache.org/jira/browse/ARROW-4869 > Project: Apache Arrow > Issue Type: Bug > Components: C++ > Reporter: Wes McKinney > Assignee: Ben Kietzman > Priority: Major > Labels: pull-request-available > Fix For: 0.13.0 > > Time Spent: 20m > Remaining Estimate: 0h > > Out of the box build with > {code} > cmake .. -DARROW_BUILD_TESTS=ON -DARROW_BUILD_BENCHMARKS=ON > -DARROW_PARQUET=ON -DARROW_GANDIVA=ON -DARROW_FLIGHT=ON > -DARROW_BOOST_VENDORED=ON > {code} > {code} > [ 57%] Building CXX object > src/arrow/ipc/CMakeFiles/arrow-ipc-json-simple-test.dir/json-simple-test.cc.o > /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:152:3: > error: reference to non-static member function must be called; did you mean > to call it with no arguments? > > ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", > 152, "mock", "out_type").WillRepeatedly(Return(boolean())); > ^~~~~~~~~~~~~~~~~~~~~~~ > () > /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:173:3: > error: reference to non-static member function must be called; did you mean > to call it with no arguments? > > ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", > 173, "mock", "out_type").WillRepeatedly(Return(int32())); > ^~~~~~~~~~~~~~~~~~~~~~~ > () > /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:192:3: > error: reference to non-static member function must be called; did you mean > to call it with no arguments? > > ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", > 192, "mock", "out_type").WillRepeatedly(Return(boolean())); > ^~~~~~~~~~~~~~~~~~~~~~~ > () > /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:213:3: > error: reference to non-static member function must be called; did you mean > to call it with no arguments? > > ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", > 213, "mock", "out_type").WillRepeatedly(Return(int32())); > ^~~~~~~~~~~~~~~~~~~~~~~ > () > 4 errors generated. > make[2]: *** > [src/arrow/compute/kernels/CMakeFiles/arrow-compute-util-internal-test.dir/util-internal-test.cc.o] > Error 1 > make[1]: *** > [src/arrow/compute/kernels/CMakeFiles/arrow-compute-util-internal-test.dir/all] > Error 2 > make[1]: *** Waiting for unfinished jobs.... > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)