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

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

  1. ล่องเรือเจ้าพระยา Says:
    March 24th, 2022 at 21:09

    … [Trackback]

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

  2. sbo Says:
    April 5th, 2022 at 20:04

    … [Trackback]

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

  3. Aggiungere Chat Facebook Sito Says:
    April 12th, 2022 at 19:43

    … [Trackback]

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

  4. Chaturbate Chrissybbw Says:
    April 14th, 2022 at 05:49

    … [Trackback]

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

  5. beer777 Says:
    April 30th, 2022 at 19:54

    … [Trackback]

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

  6. DevOps consulting services Says:
    July 1st, 2022 at 15:33

    … [Trackback]

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

  7. สล็อตวอเลท ไม่มีขั้นต่ำ Says:
    July 30th, 2022 at 20:36

    … [Trackback]

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

  8. sbobet Says:
    August 9th, 2022 at 09:45

    … [Trackback]

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

  9. visit this website Says:
    August 28th, 2022 at 03:07

    … [Trackback]

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

  10. benelli m2 20 gauge Says:
    September 8th, 2022 at 09:39

    … [Trackback]

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

  11. good shop cvv Says:
    October 1st, 2022 at 09:44

    … [Trackback]

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

  12. Better Scrum Velocity Says:
    October 18th, 2022 at 02:18

    … [Trackback]

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

  13. เงินกู้ มีนบุรี Says:
    October 23rd, 2022 at 23:08

    … [Trackback]

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

  14. software startup ideas Says:
    October 28th, 2022 at 05:57

    … [Trackback]

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

  15. see the website Says:
    October 28th, 2022 at 07:23

    … [Trackback]

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

  16. sbobet Says:
    December 2nd, 2022 at 19:38

    … [Trackback]

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

  17. 토토셔틀 Says:
    December 21st, 2022 at 15:31

    … [Trackback]

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

  18. weed delivery mississauga Says:
    January 14th, 2023 at 13:31

    … [Trackback]

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

Comments