Compdigitec Labs

« | Home | »

How to fix GCC 4.3’s removal of old headers

By admin | December 15, 2008

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 “error: iostream.h: No such file or directory“. This article will describe how to fix it in 3 easy steps:

  1. Go to http://gcc.gnu.org/gcc-4.3/porting_to.html‘s “Removal of Pre-ISO headers” section.
  2. For every header on the left, create it with contents of “#include <header_on_the.right>“.
  3. Compile your app with your regular compile arguments, adding “ -I.” to the end of it. The dot at the end is very important. Example: “g++ foo.cpp -o foo -I.

If you found this article useful or interesting, please help Compdigitec by spreading the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 3 Comments »

3 Responses to “How to fix GCC 4.3’s removal of old headers”

  1. ทางเข้า LOTTO หวยหุ้นดาวโจนส์ หวยทำเงินใหม่ Says:
    September 17th, 2023 at 20:06

    … [Trackback]

    […] Find More on to that Topic: compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/ […]

  2. Online medicatie kopen zonder recept bij het beste Benu apotheek alternatief in Amsterdam Rotterdam Utrecht Den Haag Eindhoven Groningen Tilburg Almere Breda Nijmegen Noord-Holland Zuid-Holland Noord-Brabant Limburg Zeeland Online medicatie kopen zonder recept bij beste Benu apotheek alternatief Says:
    October 17th, 2023 at 06:27

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/ […]

  3. 웹툰 무빙 무료보기 Says:
    November 16th, 2023 at 19:51

    … [Trackback]

    […] There you can find 4288 additional Info to that Topic: compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/ […]

Comments