Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Creating a Color Meter Using Cocoa
Subject:   Wierd build problem
Date:   2001-06-22 14:57:30
From:   canyonrat
Every time I try to build this project after I change anything I get 2 errors of the form:
illegal expression, found 'unknown' referencing both lines in updateColor()


Here is some output:
CompileC /Users/chrisg/Projects/ColorMeter/build/intermediates/ColorMeter.build/Objects/ppc/Controller.o
Controller.m:52: illegal expression, found `unknown'
Controller.m:54: illegal expression, found `unknown'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
Controller.m: In function `-[Controller updateColor]':
Controller.m:53: warning: cannot find class (factory) method.


Then if I click the hammer again, it builds fine.


Any clue what's going on here?

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • RE:Wierd build problem
    2001-06-27 15:28:24  larryvp [View]

    You are getting these errors because you copied the code from the page and this caused some invisible control characters to get copied into project builder which you can't see. Try deleting what was copied on the line you get the error and manually typing the code in.
    • RE:Wierd build problem
      2001-06-28 08:28:53  canyonrat [View]

      That did the trick!
      It's strange that clicking the hammer again would work.

      I think I'll suggest that Apple change the error message from 'unknown' to 'illegal token'.