Question

I'm trying to update an older project using a newer compiler and newer tools (New version of vxWorks but it shouldn't matter). In the code it says:

#include <ostream.h>

However I get a ton of errors back, most of them stemming from:

ostream.h: No such file or directory

I looked up the error and a lot of solutions said to change it to:

#include "ostream"

This works, however this is legacy code and I'd rather not go into changing all of these. Is there a way I can change these includes without changing the code?

Was it helpful?

Solution

Well, you could create a file named ostream.h which consists only of a single line:

#include <ostream>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top