Need help with 4errors
#5

Quote:

003: declaration of a local variable must appear in a compound block

The declaration of a local variable must appear between braces ("{...}") at the active scope level.

When the parser flags this error, a variable declaration appears as the only statement of a function or the only statement below an if, else, for, while or do statement. Note that, since local variables are accessible only from (or below) the scope that their declaration appears in, having a variable declaration as the only statement at any scope is useless.

****
Reply


Messages In This Thread
Need help with 4errors - by McFellow - 09.02.2013, 16:12
Re: Need help with 4errors - by Angel.Why - 09.02.2013, 16:18
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:22
Re: Need help with 4errors - by DiGiTaL_AnGeL - 09.02.2013, 16:22
Re: Need help with 4errors - by LarzI - 09.02.2013, 16:26
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:26
Re: Need help with 4errors - by Angel.Why - 09.02.2013, 16:27
Re: Need help with 4errors - by LarzI - 09.02.2013, 16:29
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:31
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:33

Forum Jump:


Users browsing this thread: 5 Guest(s)