weird error message

  • hi.

    i don't know if this is a bug or if i'm doing something wrong. in any
    case, it's driving me nuts.

    ok, in one of my projects i have a class called DCPoint. the problem
    is that i can't use that class. right now my project compiles ok, but
    when i insert the following code:

    - (DCPoint *)convertToDC {
    }

    into one of the other classes, i get a "syntax error before DCPoint"
    and the build fails. the same code compiled ok in Xcode 2.4.1 under
    10.4.10 on a G4. did they change something i'm not aware of?

    PS. now i use Xcode 3 under 10.5.1 on an intel mac mini.
  • It probably never worked, even in 10.4.x. In the before time,
    ZeroLink would have covered up your error. Since ZeroLink is no
    longer in 10.5 (as it sucked anywho), your error is not getting
    covered up.

    Make sure you're including the header or just stick

    @class DCPoint

    In your other header that defines - (DCPoint *)convertToDC

    Ack, at 11/23/07, H. Miersch said:

    > - (DCPoint *)convertToDC {
    > }
    >
    > into one of the other classes, i get a "syntax error before DCPoint"
    > and the build fails. the same code compiled ok in Xcode 2.4.1 under
    > 10.4.10 on a G4. did they change something i'm not aware of?

    --

    Sincerely,
    Rosyna Keller
    Technical Support/Carbon troll/Always needs a hug

    Unsanity: Unsane Tools for Insanely Great People

    It's either this, or imagining Phil Schiller in a thong.
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today