Click to See Complete Forum and Search --> : g++ compiler is yelling at me
flynnwallace
12-10-2000, 06:30 AM
I am trying to get back into programming as I have been out for 2-3 years now. I am working on a console based address book but when I try to compile it it keeps telling me that their is a parse error before "[". Next it tells me it is confused by earlier errors and bailing out. (If I knew how to take screen shots I would). Does anyone know what the H these to compiler errors mean? (using g++ version 2.95.3)
Flynn
Strike
12-10-2000, 07:11 AM
90% of my parse errors is either because of a missing closing brace, }, or because of a missing semicolon. Check the statements immediately before that for one of those two. If that doesn't work, post the line in question and a few lines before it.
Stuka
12-11-2000, 01:56 AM
Also check that you haven't left out an include file - I don't use gcc much yet, but VC++ will give you parse errors if it runs into an undefined class - although MS has some really creative definitions of 'undefined'!