TEXT   17

c compile

Guest on 14th August 2022 01:03:33 AM

  1. Unusual C Compiler Errors
  2.  
  3. These are some of the error messages produced by Apple's MPW C compiler.
  4. These are all real. (If you must know I was bored one afternoon and decompiled
  5. the String resources for the compiler.) The compiler is 324k in size so these are
  6. just an excerpt I hope.
  7.  
  8.     "String literal too long (I let you have 512 characters, that's 3 more than ANSI
  9.     said I should)"
  10.     "...And the lord said, 'lo, there shall only be case or default labels inside a
  11.     switch statement'"
  12.     "a typedef name was a complete surprise to me at this point in your program"
  13.     "'Volatile' and 'Register' are not miscible"
  14.     "You can't modify a constant, float upstream, win an argument with the IRS,
  15.     or satisfy this compiler"
  16.     "This struct already has a perfectly good definition"
  17.     "type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you
  18.     don't care, I'm just trying to annoy you)"
  19.     "Can't cast a void type to type void (because the ANSI spec. says so, that's
  20.     why)"
  21.     "Huh ?"
  22.     "can't go mucking with a 'void *'"
  23.     "we already did this function"
  24.     "This label is the target of a goto from outside of the block containing this
  25.     label AND this block has an automatic variable with an initializer AND your
  26.     window wasn't wide enough to read this whole error message"
  27.     "Call me paranoid but finding '/*' inside this comment makes me suspicious"
  28.     "Too many errors on one line (make fewer)"
  29.     "Symbol table full - fatal heap error; please go buy a RAM upgrade from your
  30.     local Apple dealer"
  31.  
  32.    Based on an unoriginal Usenet posting to rec.humor.funny.reruns by A J
  33.                   Cunningham, June

Raw Paste


Login or Register to edit or fork this paste. It's free.