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

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

  1. iqos terea Says:
    January 9th, 2026 at 17:19

    ทักทายครับ บทความนี้มีประโยชน์มาก ช่วยให้เข้าใจเรื่อง iqis มากขึ้น ขอบคุณที่แบ่งปันข้อมูลดีๆ ครับ

    my web-site :: iqos terea

  2. iqos Says:
    January 9th, 2026 at 17:20

    สวัสดีครับ ชอบบทความนี้จัง ใครที่สนใจ iqos ต้องมาอ่านตรงนี้เลย เป็นกำลังใจให้นะครับ

  3. terea iqos Says:
    January 9th, 2026 at 17:27

    สวัสดีครับ เขียนได้ดีมากเลยครับ ช่วยให้เข้าใจเรื่อง iqos มากขึ้น
    ขอบคุณมากครับ

    Feel free to surf to my homepage … terea iqos

  4. iqos Says:
    January 9th, 2026 at 17:45

    สวัสดีครับ เขียนได้ดีมากเลยครับ
    อ่านแล้วได้ความรู้เรื่อง iqos เพิ่มขึ้นเยอะเลย เป็นกำลังใจให้นะครับ

  5. iqos Says:
    January 9th, 2026 at 17:49

    ทักทายครับ ชอบบทความนี้จัง อ่านแล้วได้ความรู้เรื่อง iqos เพิ่มขึ้นเยอะเลย ขอบคุณที่แบ่งปันข้อมูลดีๆ ครับ

  6. iqos terea Says:
    January 9th, 2026 at 17:56

    สวัสดีครับ ชอบบทความนี้จัง กำลังหาข้อมูลเกี่ยวกับ iqos อยู่พอดี เป็นกำลังใจให้นะครับ

    My web site – iqos terea

Comments