im coding c++ in linux (ubuntu) and when i compiled an error comes up that this file is missing. i don't remember doing anything drastic as to lose files/libraries. what could be the problem? thanks!
Printable View
im coding c++ in linux (ubuntu) and when i compiled an error comes up that this file is missing. i don't remember doing anything drastic as to lose files/libraries. what could be the problem? thanks!
iostream.h is nonstandard header file and it might be not available with your compiler. Try iostream instead.
Regards,
Hob
i've used this header before and now it can't be found...
so, do you think it's more likely that i've tampered with my current library?
If you are using quite new version of compiler (and I think that you do), do not even bother including iostream.h. This file is obsolete and put into libraries for backward compatibility only. The same functionality, but conforming to curent standards, is placed inside of iostream, so just put
line in your app.Code:#include <iostream>
Maybe before you were using backward-compatible libraries which included iostream.h, and now switched to more modern one.
Hob
You shouldn't have used it to begin withQuote:
Originally Posted by beej
And it isn't required to be there.Quote:
and now it can't be found...
No. The <iostream.h> never has been an official standard header. No compiler is required to have it or support it.Quote:
so, do you think it's more likely that i've tampered with my current library?
The correct standard C++ header, as pointed out by Hobson, is <iostream>. Even if your compiler has <iostream.h>, you should still use <iostream>.
Regards,
Paul McKenzie
Read the FAQ.
And this Herb Sutter's article if you need to convert a whole project.