title: Error 'a value of type "X *" cannot be assigned to an entity of type "X *"' when using typedef struct
body: <p>Here is the struct I am using for the nodes...</p>
  
  <pre><code>typedef struct
  {
      struct Node* next;
      struct Node* previous;
      void* data;
  } Node;
  </code></pre>
  
  <p>and here is the function I am using to link them</p>
  
  <pre><code>void linkNodes(Node* first, Node* second)
  {
      if (first != NULL)
          first-&gt;next = second;
  
      if (second != NULL)
          second-&gt;previous = first;
  }
  </code></pre>
  
  <p>now visual studio is giving me the intellisense(less) error on those lines</p>
  
  <pre><code>IntelliSense: a value of type "Node *" cannot be assigned to an entity of type "Node *"
  </code></pre>
  
  <p>can anyone explain the proper way to do this? Visual studio will compile it and run it find and it also works on my mac but is crashing on my schools servers.</p>
  
  <p>edit: i thought of using memcpy but that's pretty cheasy</p>