title: C++ typedef and struct question
body: <pre><code>typedef struct 
  {
      int y;
      int weight;
      struct edgenode * next;
  }edgenode;
  </code></pre>
  
  <p>This code is giving error : <code>'edgenode' : redefinition; different basic types</code></p>
  
  <p>It works fine in C code.</p>
  
  <p>Why?</p>