From: "Mr. Richard Seabrook" Subject: no subject (file transmission) To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Wed, 25 Aug 1993 17:22:09 -0500 (EDT) Hiya, Thanks very much to all who sent msgs on compiling c++. I could not get the following little program to do stream output. Looks like pretty standard c++ code to me... I compiled it with gcc hello.cc // hello.cpp -- it's named hello.cc in the directory // Created 8/23/93 to check out the Gnu C++ compiler // Downloaded 8/20 from Clarkson College, Canada // #include #include int main() { cout << "Hello, world!!" << "\n"; return 0; } Here are the error messages I got (painfully retyped by me since I couldn't redirect !@*%#***@@#! stderr under DOS): C:\tmp/ccb00059(.text+25): undefined reference to `cout' c:\tmp/ccb00059(.text+2a): undefined reference to `operator<<(ostream &, const char *)' c:\tmp/ccb00059(.text+35): undefined reference to `operator<<(ostream &, const char *)' Looks to me like iostream.h is not getting included, since that's where cout is defined. But my environment is set up according to the readme... here's the output from the set command, redirected and printed: PROMPT=$p$g TEMP=C:\DOS COMPILER_PATH=c:\djgpp\bin C_INCLUDE_PATH=c:\djgpp\include CPLUS_INCLUDE_PATH=c:\djgpp\cplusinc;c:\djgpp\include; OBJC_INCLUDE_PATH=c:\djgpp\include OBJCPLUS_INCLUDE_PATH=c:\djgpp\include LIBRARY_PATH=c:\djgpp\lib TMPDIR=c:\tmp GO32TMP=c:\tmp COMSPEC=C:COMMAND.COM PATH=C:\WINDOWS;C:\DOS;C:\BIN;C:\TC\BIN;C:\LAN;C:\MAKE;C:\VI;C:\DJGPP\BIN I even went back to autoexec.bat and put in the trailing ";" in the CPLUS_INCLUDE_PATH assignment, but it didn't help. Any ideas? Thanx! Dick S.