Mail Archives: djgpp/2001/05/07/02:11:44
On Sun, 6 May 2001, Martin Ambuhl wrote:
> > C:\>gcc hello.cpp -o hello.exe -lm
> > In file included from hello.cpp:1:
> > c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
> > (ENOENT)
>
> You are trying to compile and link C++ code as C. See your documentation for
> details on using gpp instead of gcc
Using gcc instead of gpp might be a reason for link errors, but not
for compilation errors. When gcc sees a.cpp file, it knows that it is a
C++ program.
The error message above comes from the preprocessor, not from the linker.
As I wrote elsewhere in this thread, section 8.3 of the FAQ discusses
this problem.
- Raw text -