From: "Jonadab the Unsightly One" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Newbie Question regarding include Date: 7 Sep 1998 23:20:32 GMT Organization: Belly Laugh Software Lines: 66 Message-ID: <01bddab6$7b68a300$LocalHost@jonadab> NNTP-Posting-Host: craw2-cs-8.dial.bright.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk First of all, I have programmed in a number of languages and am only new to C++. Unfortunately my only reference is the Dummies book on Borland 4.0, so if anybody could direct me to a better online reference that might help even more than an answer to my question. The question is, how do I get include to work? I am posting an error message I get as well as my source code below. Note also that I get similar results with gcc under Debian Gnu Linux 3.2 as I get with the DJGPP DOS port, so I think it has more to do with syntax than installation, but I could be wrong about that. Anyway, here's my command line: E:\A\DJGPP\BIN\Gcc.exe -v -x c++ D:\C\HELLOW.C -o D:\C\HELLOW.exe -lstdc And the results (wrapped): > cd D:\c > E:\A\DJGPP\BIN\Gcc.exe -v -x c++ D:\C\HELLOW.C -o D:\C\HELLOW.exe -lstdc E:\A\DJGPP\BIN\Gcc.exe -v -x c++ D:\C\HELLOW.C -o D:\C\HELLOW.exe -lstdc Reading specs from e:/a/djgpp/lib/specs gcc version 2.8.1 e:/a/djgpp/lib/gcc-lib/djgpp/2.81/cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__EXCEPTIONS D:\C\HELLOW.C e:/a/djgpp/tmp/ccaqxw1h GNU CPP version 2.8.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: e:/a/djgpp/include e:/a/djgpp/lib/gcc-lib/djgpp/2.81/include e:/a/djgpp/include End of search list. D:\C\HELLOW.C:9: iostream.h: No such file or directory (ENOENT) And my source: /* Hello World By Jonadab the Unsightly One A learning exercise, and the first thing I ever compiled (rather *tried to*, thus far) with gcc. */ #include // also tried without the .h // also tried with quotes instead of brokets. // also tried both of the above at once. int main { cout << "Hello, World!\n"; return 1; } // end of source. So, can someone please tell me what stupid mistake I am making so I can get on with it. -- Dyslexic email address: ten DOT thgirb AT badanoj