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

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

  1. Oregon roofing Says:
    October 13th, 2026 at 14:25

    Do you have a spam issue on this website; I also am a blogger, and I was wanting to
    know your situation; we have created some
    nice practices and we are looking to swap strategies with other folks, be sure
    to shoot me an email if interested.

  2. Tampa rideshare accident law firm Says:
    October 14th, 2026 at 15:54

    First off I would like to say terrific blog! I had a quick question which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your
    mind before writing. I have had a hard time clearing my mind in getting my thoughts
    out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes tend
    to be lost just trying to figure out how to begin. Any ideas or tips?
    Appreciate it!

Comments