On 01Dec2006 01:45, yakov lerner <[EMAIL PROTECTED]> wrote:
| It is easy to identify extra '}' in the .c source, compiler
| points us to the exact line. Rarely, I have the opposite error,
| the extra '{' somewhere in the source. For example
|                 int foo() {
|                 {
|                       ....
|                  }
| In this case, gcc points me to the end of file. This is not helpful.
| Can anyone suggest quick method of finding the function
| that contains extra '{' brace ?

I insert a closing brace at the end of the file (or earlier, depending
what extra brace opening I suspect) and then find its match.
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

This site has been moved.
We'd tell you where, but then we'd
have to delete you.
- Haiku Error Messages 
http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html

Reply via email to