title: error: conflicting declaration - cant a pointer be an int?
body: <p>I am trying to compile a library, when running <code>make</code> I get many of the following errors:</p>
  
  <pre><code>error: conflicting declaration ‘int x’
  error: ‘x’ has a previous declaration as ‘Text* x’
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>.
  .
  .
  class Text;
  class Code {
  
      private:
              std::vector&lt;std::string&gt; *tokens;
              std::vector&lt;std::string&gt; *compounds;
              std::vector&lt;std::string&gt; *compound_xml;
              std::vector&lt;std::string&gt; *compound_xml_action;
              void set_helper(Text *x, int a, int b, int c, std::string field, std::string value);
              std::string itoa(int x);
  
      public:
              Code();
              ~Code();
  
              int analyse_code(Text *x, std::string c, int x, int y, int z);
              int print(Text *x, std::string c, int x, int y, int z);
              int is_class(Text *x, std::string c, int x, int y, int z);
              int is_class2(Text *x, std::string c, int x, int y, int z);
              int not_class(Text *x, std::string c, int x, int y, int z);
  
   .
   .
   .
  </code></pre>
  
  <p>so in <code>analyse_code</code> function\method, should I convert <code>int x</code> to <code>int a</code> or <code>int wtv</code> or is it smth else causing the error?</p>
  
  <p>since the author of the library has used <code>Text* x</code> and <code>int x</code> in many functions, I thought maybe he knows what he's doing and pointers can be <code>int</code>, or am I wrong thinking he knows what he is doing?</p>
  
  <p>Irrelevant: The library is Adso, a Chinese text analysis engine.</p>