« 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 | 8 Comments »

October 7th, 2026 at 18:33
We’re a group of volunteers and opening a new scheme in our community.
Your web site offered us with valuable information to work
on. You’ve done a formidable job and our whole community will be grateful to
you.
October 7th, 2026 at 18:41
Hey there I am so happy I found your website, I really found
you by mistake, while I was searching on Aol for something else, Regardless
I am here now and would just like to say cheers for a tremendous post
and a all round exciting blog (I also love the theme/design), I
don’t have time to browse it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read
a great deal more, Please do keep up the awesome job.
October 7th, 2026 at 18:46
Thanks designed for sharing such a nice opinion, article
is nice, thats why i have read it entirely
October 7th, 2026 at 20:24
It’s actually a cool and helpful piece of information. I am happy that you simply shared this helpful information with us.
Please stay us informed like this. Thank you for sharing.
October 7th, 2026 at 21:33
Spot on with this write-up, I seriously feel this site needs far more attention. I’ll probably be back again to read through more,
thanks for the info!
October 7th, 2026 at 21:33
It is appropriate time to make a few plans for the longer term and it is time to be happy.
I’ve learn this publish and if I may I wish to suggest you few attention-grabbing
issues or suggestions. Perhaps you could write subsequent articles referring to this article.
I wish to learn even more things about it!
October 7th, 2026 at 21:36
I really like what you guys are up too. This kind of clever work and coverage!
Keep up the wonderful works guys I’ve added you guys
to my personal blogroll.
October 7th, 2026 at 21:59
Hello there! I know this is kinda off topic but I was wondering if you knew where I could
get a captcha plugin for my comment form? I’m using the
same blog platform as yours and I’m having difficulty finding
one? Thanks a lot!