This error occures in the following circumstances:

* You havn't closed the last bracket for example:

Code:
int main ( void )
{
// You haven't closed it here so You will get an error
void _error ( const char* err )
{
}
* If you try to declare a function into a function. This is not legal in C. But legal in Pascal.

Please post the code that caused the error.
You are very welcome. Everybody - me too - had to start from scratch.