Re: Error C2601


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on October 30, 2001 at 14:02:10:

In Reply to: Error C2601 posted by Brian S on October 30, 2001 at 12:57:52:

: I am getting the error:
: "error C2601: 'functionname' : local function definitions are illegal" for all six of my functions. I cannot figure this one out.


The reference to "local function" indicates that the compiler is finding the beginning of a function definition before it's found the end of the previous function definition, something like:

void Foo() { // begin def. of Foo
...
void Bar() { // begin def. of Bar
...

Usually this happens because you've got an extra '{' or a missing '}' within the body of the first function Foo. Note that the compiler won't complain about Foo; it will complain about Bar.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]