« Parenting guide | Main | Quirky »

January 26, 2008

Compiler messages

This will likely only be amusing to programmers, but I think they'll find it funny. And speaking of compilers, Steve Yegge has an pretty entertaining rant on the reasons programmers should learn about them.

These are some of the error messages produced by Apple's MPW C compiler. These are all real. (If you must know I was bored one afternoon and de-compiled the String resources for the compiler.) The compiler is 324K in size so these are just an excerpt I hope. I'm not sure where I stand on the copyright issue. - Tony Cunningham

String literal too long (I let you have 512 characters, that's 3 more than ANSI said I should)

...And the lord said, 'lo, there shall only be case or default labels inside a switch statement'

a typedef name was a complete surprise to me at this point in your program

'Volatile' and 'Register' are not miscible

You can't modify a constant, float upstream, win an argument with the IRS, or satisfy this compiler

This struct already has a perfectly good definition

This onion already has a perfectly good definition

type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you don't care, I'm just trying to annoy you)

Can't cast a void type to type void (because the ANSI spec. says so, that's why)

Huh?

I can't go mucking with a 'void *'

we already did this function

This label is the target of a goto from outside of the block containing this label AND this block has an automatic variable with an initializer AND your window wasn't wide enough to read this whole error message

Call me paranoid but finding '/*' inside this comment makes me suspicious

Too many errors on one line (make fewer)

Symbol table full - fatal heap error; please go buy a RAM upgrade from your local Apple dealer

Posted by joke du jour at January 26, 2008 10:12 AM

« Parenting guide | Main | Quirky »

Trackback Pings

TrackBack URL for this entry:
http://crainium.net/ajw-mt/mt-tb.fcgi/1883

Comments

Post a comment




Remember Me?

(you may use HTML tags for style)

Send this to a friend

E-mail this entry to:


Your e-mail address:


Message (optional):