From: jackelope Newsgroups: comp.os.msdos.djgpp Subject: Help! problem not in docs! Date: 19 Apr 1997 23:56:31 GMT Organization: KritiKal MatH Lines: 47 Message-ID: <5jbm3f$mga@news.interlog.com> NNTP-Posting-Host: ip213-28.cc.interlog.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk i am having a really hard time getting djgpp up and running. when i try and pass the following command to gcc.exe gcc -v myfirst.cc -o myfirst.exe i get some stuff on the screen that lists dirs being searched for the #included file(iostream.h). when the compiler gets to the instructions like: cout << "hello\n"; i get an 'undefined reference to cout' and 'undefined reference to ostream' messages. it appears the compiler cannot find the iostream.h header file. i should mention: 1. djgpp was installed to the directory d:\djgpp (including files: djdev201.zip, bnu27b.zip, gcc2721b.zip, gpp2721b.zip, lgp271b.zip.) 2. i have included the line: {set DJGPP=d:\djgpp\djgpp.env} to my autoexec.bat file(without the braces) 3. the iostream.h file is in the d:\djgpp\lang\cxx dir, and when i run gcc.exe with the -v option, it tells me it searches that dir. i havent seen anything about this in the docs, so i hope someone knows how to fix this this is *not* a dpmi problem; it occurs while using win 3.x *or* win 3.x here is the listing for myfirst.cc (without the lines): -------------------------------- #include int main(void) { cout << "hello\n"; return 0; } -------------------------------- if you know what the prob is id really like to know. thanks :-)