error: conflicting declaration - cant a pointer be an int?
问题 I am trying to compile a library, when running make I get many of the following errors: error: conflicting declaration ‘int x’ error: ‘x’ has a previous declaration as ‘Text* x’ Here is the code: . . . class Text; class Code { private: std::vector<std::string> *tokens; std::vector<std::string> *compounds; std::vector<std::string> *compound_xml; std::vector<std::string> *compound_xml_action; void set_helper(Text *x, int a, int b, int c, std::string field, std::string value); std::string itoa