Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Local function definitions problem!

This topic is 5730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!