Dominick Piganell
Dominick Piganell

Reputation: 714

ostream.h: No such file or directory

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?

Upvotes: 1

Views: 3388

Answers (1)

fredoverflow
fredoverflow

Reputation: 263128

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

#include <ostream>

Upvotes: 6

Related Questions