Eduard Rakhmankulov created IGNITE-27223:
--------------------------------------------

             Summary: C++ Compilation of cluster_connection.cpp fails in some 
environments.
                 Key: IGNITE-27223
                 URL: https://issues.apache.org/jira/browse/IGNITE-27223
             Project: Ignite
          Issue Type: Bug
            Reporter: Eduard Rakhmankulov


Message from dev-list:
{code:java}
 
Hello, 

I have this environment :
Debian 13.2, gcc 14.2.0-19, cmake 3.31.6-2

And I try to compile ignite 3.1.0 cpp client with the following :
git clone https://github.com/apache/ignite-3.git
cd ignite-3 && git checkout 3.1.0
cd /modules/platforms/cpp/
mkdir cmake-build-release && cd cmake-build-release
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j8

The build crash with this error :
~/ignite-3/modules/platforms/cpp/ignite/client/detail/cluster_connection.cpp: 
In member function ‘virtual void 
ignite::detail::cluster_connection::on_message_received(uint64_t, 
ignite::bytes_view)’:
~/ignite-3/modules/platforms/cpp/ignite/client/detail/cluster_connection.cpp:171:24:
 error: no matching function for call to 
‘find(std::vector<ignite::uuid>::const_iterator, 
std::vector<ignite::uuid>::const_iterator, ignite::uuid&)’
  171 |     auto it = std::find(cluster_ids.begin(), cluster_ids.end(), 
*current_cluster_id);
      |               
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {code}
It seems that *algorithm* header should be included. 

In some environments compilation working fine because missing function included 
through chain: <functional> -> <std_algo.h>.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to