« Mount a FTP share in Ubuntu as a folder | Home | phpBB force login hack »
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:
- Go to http://gcc.gnu.org/gcc-4.3/porting_to.html‘s “Removal of Pre-ISO headers” section.
- For every header on the left, create it with contents of “#include <header_on_the.right>“.
- 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 »

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.
November 10th, 2026 at 07:10
Hi there, I enjoy reading through your article. I wanted to write a little comment to support you.
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.
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.
November 10th, 2026 at 07:49
Appreciate this post. Let me try it out.
November 10th, 2026 at 07:50
Keep this going please, great job!
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!
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.
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!
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!
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.
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!