• ### Announcements

#### Archived

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

# Local function definitions problem!

## 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

int main (){  int foo () { return 1; } //error: local function definitions illegal