c - C89 - error: expected ')' before '*' token -


I'm getting this error inside C

error: expected ')' First '*' token

but it can not be traced.

  zero print_structure (struct_alias * s) // error within this line {...} // end of print method   

My question then received Where is the error where this error can return error? Is there a problem with this function, can it be an error with what is being passed? What is the scope of the error?

The compiler does not recognize the name as struct_alias .

For that code to be compiled, struct_alias should be declared as typedef , and that declaration is visible to the compiler When he sees the definition of print_struct

(Typedef names are tough. In effect, they are temporarily user-defined keywords, which is why their errors can cause such a misleading error message.)

It is not specific for the C89; It applies equally to the C90 (which is the same language as C8 9), CAMT, and C11.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -