Re: Curly bracket question
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Fri, 28 Mar 2008 21:51:42 -0000
On 2008-03-28, Martin Griffith <mart_in_medina@xxxxxxxx> wrote:
Doom and Gloom ( and couple glasses of wine).
Last night I just compiled my little project, with the 4k limited
Raisonance C complier for the 8051/2
" missing } " it said, you have been naughty
Well, you're probably missing a '}'. :)
I counted all the brackets, even gave them names, I could not
find where to put it.
If you're using any decent programming editor, it should be
pretty obvious where to put it, since the indentation level
won't "look right" somewhere.
Alternatively, run the program through indent or astyle and
look at the output to see where the indentation isn't right.
I stuck an extra bracket at the end of main()
It, the ***, was happy.
I don't see how you expect the compiler to know where the
missing bracket belongs.
But nothing worked, not even InitLCD, first thing in main().
Raisonance doesn't seem to have much of a back up system, and
it cost me ( on my 60'th birthday) about 5 hours.
I don't get it: what do you mean by "a back up system"?
Any hints /tips/ goto keil, do not pass go, on the missing
bracket syndrome
I don't see how it's the compiler's fault.
--
Grant Edwards grante Yow! The entire CHINESE
at WOMEN'S VOLLEYBALL TEAM all
visi.com share ONE personality --
and have since BIRTH!!
.
- Follow-Ups:
- Re: Curly bracket question
- From: Martin Griffith
- Re: Curly bracket question
- References:
- Curly bracket question
- From: Martin Griffith
- Curly bracket question
- Prev by Date: Curly bracket question
- Next by Date: Re: BF533 / ISP1761 USB Host enumerating problem
- Previous by thread: Curly bracket question
- Next by thread: Re: Curly bracket question
- Index(es):