Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DJGPP compiler error

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I installed the 32 bit C++ DJGPP compiler, and I cant even compile Hello World. I cant compile anything, its not my code. When I tried to compile Hello.cpp I get this error

In file included from Hello.cpp:1:
c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory <ENOENT>

streambuf.h is there, and i havnt edited it either. iostream.h is also there, and i havnt edited it either.
 
What platform, reason I ask is setting up g++ on a Solaris system isn't a quick an easy thing.

Sounds (probably too obvious) is the header pathing is botched somehow.

B
 
When compiling, try using

g++ -I/path/to/file -o outfile.name file.cpp

where path/to/file is the directory that the headers are in(You can use multiple -I swithches (that's an eye I, no an ell L)).

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top