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

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

  1. exterior painting Colorado Springs CO Says:
    November 10th, 2026 at 07:03

    I really like what you guys tend to be up too. This type of
    clever work and reporting! Keep up the wonderful works guys I’ve incorporated you guys to my personal blogroll.

  2. painting contractor Colorado Springs Says:
    November 10th, 2026 at 07:10

    Hi there, I enjoy reading through your article. I wanted to write a little comment to support you.

  3. painting companies Colorado Springs Says:
    November 10th, 2026 at 07:39

    Great items from you, man. I’ve take note your stuff previous to and you’re
    just too magnificent. I actually like what you have bought
    right here, really like what you’re saying and the best way
    during which you assert it. You’re making it entertaining and you continue to take care of to
    keep it sensible. I can not wait to learn much more from you.
    That is actually a wonderful web site.

  4. remodeling companies Wilmington NC Says:
    November 10th, 2026 at 07:47

    This is my first time pay a visit at here and i am actually
    impressed to read everthing at single place.

  5. surf wave pool Florida Says:
    November 10th, 2026 at 07:49

    Appreciate this post. Let me try it out.

  6. kitchen cabinet painting Colorado Springs Says:
    November 10th, 2026 at 07:50

    Keep this going please, great job!

  7. Florida wave pool Says:
    November 10th, 2026 at 08:56

    Woah! I’m really loving the template/theme
    of this site. It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between superb usability and visual appearance.
    I must say you have done a fantastic job with this. Additionally, the blog loads super
    quick for me on Firefox. Excellent Blog!

  8. Colorado Springs electrician Says:
    November 10th, 2026 at 09:25

    Its like you read my mind! You appear to grasp so much approximately this, like you wrote the ebook in it
    or something. I believe that you can do with a few percent to drive the message
    home a bit, however instead of that, this is wonderful blog.
    A great read. I will certainly be back.

  9. home remodeling Wilmington NC Says:
    November 10th, 2026 at 09:32

    Spot on with this write-up, I absolutely believe that this site
    needs much more attention. I’ll probably be back again to read through
    more, thanks for the info!

  10. electrical panel replacement Colorado Springs Says:
    November 10th, 2026 at 11:51

    Hi there, just became aware of your blog through Google, and found that it is really informative.
    I am gonna watch out for brussels. I will be
    grateful if you continue this in future. A lot of people will be benefited from
    your writing. Cheers!

  11. water park Florida Says:
    November 10th, 2026 at 12:40

    I’ve read a few good stuff here. Certainly price bookmarking for revisiting.
    I surprise how much attempt you place to make this type of wonderful
    informative site.

  12. EV charger installation Colorado Springs CO Says:
    November 10th, 2026 at 16:56

    Hey there! I could have sworn I’ve been to this website before
    but after browsing through some of the post I realized it’s new to
    me. Anyhow, I’m definitely happy I found it and I’ll be bookmarking and checking back frequently!

Comments