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

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

  1. สล็อตเว็บตรง ลิขสิทธิ์แท้ ระบบเกมมาตรฐาน โบนัสแตกโหด Says:
    January 18th, 2025 at 14:37

    … [Trackback]

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

  2. เว็บพนันออนไลน์เกาหลี Says:
    January 21st, 2025 at 06:26

    … [Trackback]

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

  3. LSM55 เว็บเล่นพนัน คาสิโน เกมออนไลน์ Says:
    January 21st, 2025 at 20:29

    … [Trackback]

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

  4. altogel Says:
    January 22nd, 2025 at 22:57

    … [Trackback]

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

  5. AMB Casino คาสิโนออนไลน์ Says:
    January 24th, 2025 at 22:20

    … [Trackback]

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

  6. interior painters Calgary Says:
    January 28th, 2025 at 12:52

    … [Trackback]

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

Comments