Previous version of cpp-drivers was installed, so there was a /usr/local/include/cassandra.h without CASS_UINT64_MAX defined. Since the compile line generated by cmake specified -I/usr/local/include before -I/home/peter.dasilva/git/cpp-driver/include, this was being used by the build.
Workaround was:
Remove the previous install of the drivers.
Suggested fix:
Modify the cmake configuration to reverse the order of the generated -I options, so the include files consistent with this version of cpp-drivers are installed. I am not familiar enough with cmake to delve into this further myself, so I can't provide a patch.
Build failed because:
cpp-driver/src/request.hpp:72:29: error: use of undeclared identifier 'CASS_UINT64_MAX'
Compile line was:
The root cause was:
Previous version of cpp-drivers was installed, so there was a /usr/local/include/cassandra.h without CASS_UINT64_MAX defined. Since the compile line generated by cmake specified -I/usr/local/include before -I/home/peter.dasilva/git/cpp-driver/include, this was being used by the build.
Workaround was:
Remove the previous install of the drivers.
Suggested fix:
Modify the cmake configuration to reverse the order of the generated -I options, so the include files consistent with this version of cpp-drivers are installed. I am not familiar enough with cmake to delve into this further myself, so I can't provide a patch.