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 | 13 Comments »

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

  1. vegus666 Says:
    July 29th, 2025 at 17:53

    … [Trackback]

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

  2. พัดลมอุตสาหกรรม Says:
    July 30th, 2025 at 12:37

    … [Trackback]

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

  3. ขายเหล็ก Says:
    August 1st, 2025 at 05:46

    … [Trackback]

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

  4. โปรแกรม บอลไทย เริ่มต้นกับ LSM99 Says:
    August 2nd, 2025 at 22:11

    … [Trackback]

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

  5. elephant sanctuary chiang mai Says:
    August 3rd, 2025 at 07:18

    … [Trackback]

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

  6. additional hints Says:
    August 4th, 2025 at 08:55

    … [Trackback]

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

  7. hiso23 Says:
    August 6th, 2025 at 20:39

    … [Trackback]

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

  8. namayti57 Says:
    August 9th, 2025 at 04:16

    … [Trackback]

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

  9. สั่งสินค้าจากจีน Says:
    September 3rd, 2025 at 02:15

    … [Trackback]

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

  10. Las vegas สล็อตเว็บตรงแตกง่าย Says:
    September 9th, 2025 at 19:25

    … [Trackback]

    […] Here you will find 70581 more Info to that Topic: compdigitec.com/labs/2008/12/15/how-to-fix-gcc-43s-removal-of-old-headers/ […]

  11. ออกแบบตกแต่งภายในบ้านหรู Says:
    September 10th, 2025 at 20:54

    … [Trackback]

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

  12. blazing crown Says:
    September 11th, 2025 at 19:15

    … [Trackback]

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

  13. Volnewmer ราคา Says:
    September 13th, 2025 at 23:50

    … [Trackback]

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

Comments