From: "Art Nouveau" Newsgroups: comp.os.msdos.djgpp Subject: Error: no match for 'std::istream& > int&' operator Date: Fri, 23 Aug 2002 15:58:41 -0400 Lines: 46 Message-ID: X-Trace: UmFuZG9tSVYpSs9BeKt8iqQEOKtbF8spweSKajkb03kSZ5E5LSBGq+nziR9nvTMT X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 23 Aug 2002 19:59:03 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am just starting to learn C++ but can't seem to compile and run my first program. I get the subject error at "cin > nCelsius " at line 9. I am using DJGPP in a RHID149 environment and followed all the instructions for setting LFN=Y in DJGPP.ENV, SET DJGPP=C:\DJGPP\BIN in Autoexec.bat, FILES=55 in config.sys (the only statement in config.sys). I am running in a DOS Window under Windows 98-2nd Ed. Rhide was run from "My Documents\Cplus" folder with C:\DJGPP;C:\DJGPP\BIN in the PATH. The file "iostream" was found in C:\DJGPP\lang\cxx-31. The file "iostream.h", found in C:\DJGPP\cxx-31\backward gave error messages that were eliminated when I used "iostream" in the #include statement. I have read all the FAQs and still can't solve the problem. My installation using Winzip unzipped all files into C:\DJGPP and its recursed subdirectories using the following downloaded files: v2/djdev203.zip v2/faq230.zip v2/readme.1st v2/rhid149b.zip v2gnu/bnu213b.zip v2gnu/gcc31b.zip v2gnu/gpp31b.zip v2gnu/mak3791b.zip v2gnu/txi42b.zip My program "conv.cpp" is as follows: // C to F include #include using std::cout; using std::cin; int main(int nNumberofArgs, char* pszArgs[]) { cout << "Input temperture in Celsius.\n"; int nCelsius; cin > nCelsius; int nFahrenheit; nFahrenheit=9*nCelsius/5 + 32 cout << "Temperature in Fahrenheit is "; cout << nFahrenheit return(0); } Anyone's help is appreciated.