RE: Writing Files
RE: Writing Files
- Subject: RE: Writing Files
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 30 Jun 2003 14:17:06 -0400
>
>> When I try to compile that bit of code, it tells be that there is a
>
>> parse error before the * of the line "NSSavePanel* sp = [NSSavePanel
>
>> savePanel];". Why might that be happenening? It looks good to me...
>
>
There is no declaration ( NSSavePanel* sp... ) allowed after calling
>
methods or functions ( pdf417init(&p); ). This is still not C++ ;-)
Not true! You can put declarations anywhere with gcc 3.1. That wouldn't be
a "parse error" anyway.
Offhand, I'd say the problem was in the " // Various config things" that
seem to have been left out of the follow-up e-mail. Almost always, this
error is caused by a missing semicolon or closing brace, bracket, or
parenthesis. A cool thing about PB is you can double-click on a brace,
bracket, or parenthesis and PB will select it and everything up to and
including the matching mark. If PB can't find a match, it beeps at you.
This makes it easy to find and fix these kinds of typos.
Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.