Mail Archives: djgpp/2000/06/10/01:11:47
> From: jsfw <jsfw AT no DOT spam DOT pls>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 10 Jun 2000 12:02:18 +0800
>
> C:\djgpp>gcc -c Wall hello.c
>
> gcc.exe: Wall: No such file or directory (ENOENT)
> hello.c:1: iostream.h: No such file or directory (ENOENT)
Rename your program to hello.cc or hello.cpp. When the compiler sees
a file with a .c extension, it handles it as a C program, not a C++
program, and doesn't search the C++ include directories.
This is in the FAQ, btw (section 8.3). New users are encouraged to
download and install the FAQ (v2/faq230b.zip from the same place you
get DJGPP) and look there whenever they have problems, before posting
here. The FAQ is quite large, but you can use the indices near its
end to quickly find the subject(s) you need.
- Raw text -