<p>I'm compiling a simple .c in visual c++ with Compile as C Code (/TC)
and i get this compiler error </p>

<blockquote>
  <p>error C2143: syntax error : missing ';' before 'type'</p>
</blockquote>

<p>on a line that calls for a simple struct </p>

<pre><code> struct foo test;
</code></pre>

<p>same goes for using the typedef of the struct.</p>

<blockquote>
  <p>error C2275: 'FOO' : illegal use of this type as an expression</p>
</blockquote>

Did you accidentally omit a semicolon on a previous line? If the previous line is an
```
#include
```
, you might have to look elsewhere for the missing semicolon.
Edit: If the rest of your code is valid C++, then there probably isn't enough information to determine what the problem is. Perhaps you could post your code to a
pastebin
so we can see the whole thing.
Ideally, in the process of making it smaller to post, it will suddenly start working and you'll then have discovered the problem!