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

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

  1. ตลับหมึกแท้สำหรับเครื่องพิมพ์ Says:
    August 12th, 2026 at 21:09

    ขอบคุณสำหรับข้อมูลครับ การตรวจรหัสตลับหมึกให้ตรงกับรุ่นเครื่องก่อนสั่งซื้อเป็นเรื่องสำคัญมาก

    my web site :: ตลับหมึกแท้สำหรับเครื่องพิมพ์

  2. residential painting Chico Says:
    October 1st, 2026 at 21:49

    This article is genuinely a pleasant one it assists new
    internet people, who are wishing for blogging.

  3. fence repair Houston Says:
    October 3rd, 2026 at 14:09

    Asking questions are really good thing if you are not understanding something completely, however this paragraph presents nice understanding even.

  4. Website Says:
    October 3rd, 2026 at 14:33

    Thanks for finally talking about > How to fix GCC 4.3’s removal of old headers at Compdigitec Labs < Liked it!

  5. emergency plumber Aurora CO Says:
    October 5th, 2026 at 16:29

    Greetings, I think your blog could possibly be having browser compatibility issues.
    When I take a look at your web site in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues.
    I merely wanted to give you a quick heads up!
    Other than that, wonderful blog!

  6. water heater repair in Aurora Says:
    October 5th, 2026 at 16:35

    I am really loving the theme/design of your web site. Do you ever run into any
    browser compatibility issues? A couple of my blog readers have complained
    about my blog not operating correctly in Explorer but looks great in Chrome.
    Do you have any advice to help fix this issue?

Comments