{"id":56,"date":"2008-12-15T20:21:21","date_gmt":"2008-12-16T00:21:21","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=56"},"modified":"2008-12-15T20:21:21","modified_gmt":"2008-12-16T00:21:21","slug":"how-to-fix-gcc-43s-removal-of-old-headers","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/12\/15\/how-to-fix-gcc-43s-removal-of-old-headers\/","title":{"rendered":"How to fix GCC 4.3&#8217;s removal of old headers"},"content":{"rendered":"<p>GCC 4.3 has many new feautures. But unfortunately, it may break many of your application as it removes legacy and backwards compactible headers. Compiling in this case may result in errors such as &#8220;<strong>error: iostream.h: No such file or directory<\/strong>&#8220;. This article will describe how to fix it in 3 easy steps:<\/p>\n<ol>\n<li>Go to <a rel=\"nofollow\" href=\"http:\/\/gcc.gnu.org\/gcc-4.3\/porting_to.html\">http:\/\/gcc.gnu.org\/gcc-4.3\/porting_to.html<\/a>&#8216;s &#8220;Removal of Pre-ISO headers&#8221; section.<\/li>\n<li>For every header on the left, create it with contents of &#8220;<strong>#include &lt;<em>header_on_the.right<\/em>&gt;<\/strong>&#8220;.<\/li>\n<li>Compile your app with your regular compile arguments, adding &#8220;<strong> -I.<\/strong>&#8221; to the end of it. The dot at the end is very important. Example: &#8220;<strong>g++ foo.cpp -o foo <em>-I.<\/em><\/strong>&#8220;<\/li>\n<\/ol>\n<p>If you found this article useful or interesting, please help Compdigitec by spreading the word. Don&#8217;t forget to <a href=\"\/labs\/feed\">subscribe to Compdigitec Labs<\/a> for more useful and interesting articles!<\/p>","protected":false},"excerpt":{"rendered":"<p>GCC 4.3 has many new feautures. But unfortunately, it may break many of your application as it removes legacy and backwards compactible headers. Compiling in this case may result in errors such as &#8220;error: iostream.h: No such file or directory&#8220;. This article will describe how to fix it in 3 easy steps: Go to http:\/\/gcc.gnu.org\/gcc-4.3\/porting_to.html&#8216;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[304,289,291,292,294,295,296,299,302,301,298,303,300,290,293,297],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/56"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}