{"id":22,"date":"2008-07-27T02:11:31","date_gmt":"2008-07-27T02:11:31","guid":{"rendered":"https:\/\/blog.oscarc.net\/?p=22"},"modified":"2018-01-28T06:43:06","modified_gmt":"2018-01-28T06:43:06","slug":"c-compiler-errors-for-real","status":"publish","type":"post","link":"https:\/\/blog.oscarc.net\/index.php\/2008\/07\/27\/c-compiler-errors-for-real\/","title":{"rendered":"C Compiler Errors (For Real)"},"content":{"rendered":"<pre>From: tjc@castle.edinburgh.ac.uk (A J Cunningham)<\/pre>\n<p>These are some of the error messages produced by Apple&#8217;s MPW C compiler. These are all real. (If you must know I was bored one afternoon and decompiled the String resources for the compiler.) The compiler is 324k in size so these are just an excerpt I hope. I&#8217;m not sure where I stand on the copyright issue.<\/p>\n<p>Tony Cunningham<\/p>\n<p>&#8220;String literal too long (I let you have 512 characters, that&#8217;s 3 more than ANSI said I should)&#8221;<\/p>\n<p>&#8220;&#8230;And the lord said, &#8216;lo, there shall only be case or default labels inside a switch statement'&#8221;<\/p>\n<p>&#8220;a typedef name was a complete surprise to me at this point in your program&#8221;<\/p>\n<p>&#8220;&#8216;Volatile&#8217; and &#8216;Register&#8217; are not miscible&#8221;<\/p>\n<p>&#8220;You can&#8217;t modify a constant, float upstream, win an argument with the IRS, or satisfy this compiler&#8221;<\/p>\n<p>&#8220;This struct already has a perfectly good definition&#8221;<\/p>\n<p>&#8220;type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you don&#8217;t care, I&#8217;m just trying to annoy you)&#8221;<\/p>\n<p>&#8220;Can&#8217;t cast a void type to type void (because the ANSI spec. says so, that&#8217;s why)&#8221;<\/p>\n<p>&#8220;Huh ?&#8221;<\/p>\n<p>&#8220;can&#8217;t go mucking with a &#8216;void *'&#8221;<\/p>\n<p>&#8220;we already did this function&#8221;<\/p>\n<p>&#8220;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&#8217;t wide enough to read this whole error message&#8221;<\/p>\n<p>&#8220;Call me paranoid but finding &#8216;\/*&#8217; inside this comment makes me suspicious&#8221;<\/p>\n<p>&#8220;Too many errors on one line (make fewer)&#8221;<\/p>\n<p>&#8220;Symbol table full &#8211; fatal heap error; please go buy a RAM upgrade from your local Apple dealer&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From: tjc@castle.edinburgh.ac.uk (A J Cunningham) These are some of the error messages produced by Apple&#8217;s MPW C compiler. These are all real. (If you must know I was bored one afternoon and decompiled the String resources for the compiler.) The compiler is 324k in size so these are just an excerpt I hope. I&#8217;m not &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.oscarc.net\/index.php\/2008\/07\/27\/c-compiler-errors-for-real\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;C Compiler Errors (For Real)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-humor"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.oscarc.net\/index.php\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}