title: error: 'Mystruct' undeclared (first use in this function)
body: <p>I cannot sort a compile time error. I am compiling C project. My <code>main.c</code> file has an #include  where it can pick up the definition of a structure I am using for my project. The point is that each time that I am trying to compile my code I have the error</p>
  
  <pre><code>struct Mystruct* ps = (struct Mystruct* )malloc( sizeof(Mystruct) ); // I have this
  // error at compile time
  
  error: 'Mystruct' undeclared (first use in this function)
  </code></pre>
  
  <p>How it can be why the compiler is not able to read the structure definition?
  The include folders are set correctly</p>
  
  <p>Thanks</p>