You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jochen Topf (JIRA)" <ji...@apache.org> on 2012/09/26 21:27:08 UTC
[jira] [Created] (CASSANDRA-4725) VERSION string conflict in C++
programs
Jochen Topf created CASSANDRA-4725:
--------------------------------------
Summary: VERSION string conflict in C++ programs
Key: CASSANDRA-4725
URL: https://issues.apache.org/jira/browse/CASSANDRA-4725
Project: Cassandra
Issue Type: Bug
Components: Core
Reporter: Jochen Topf
In cassandra.thrift there is a definition like this:
const string VERSION = "19.32.0"
When building the C++ code with thrift, this leads to a file cassandra_constants.h and cassandra_constants.cpp which contain the following lines:
cassandra_constants.cpp: VERSION = "19.32.0";
cassandra_constants.h: std::string VERSION;
Unfortunately "VERSION" is all uppercase, this is generally used in macros in C++ and the macro "VERSION" is used in many programs for instance when using GNU autoconf. If there is a VERSION macro it will be expanded and those lines will break.
Maybe we can rename this to "Version" or so?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira