Advertisement

Local function definitions problem!

Started by November 08, 2002 12:20 PM
0 comments, last by mits 22 years ago
I made an application in DirectX which draws a surface but the compiler shows me an "Local function definitions are illegal" error.I don''t know what it might be wrong.If anyone can help me , please do! Thanks in advance Mits
Usually means you forgot a closing brace on a function, so the function below it looks "local" to the above function. Or you could have tried to declare a function locally, like:
int main (){  int foo () { return 1; } //error: local function definitions illegal 

Your compiler should give you the line number where you have the error; look there.

This topic is closed to new replies.

Advertisement