Date: Mon, 13 Jul 1998 11:18:45 +0300 (IDT) From: Eli Zaretskii To: Heikki Leskinen cc: "'djgpp AT delorie DOT com'" Subject: Re: Problem with C++ compilation In-Reply-To: <01BDADE6.2F085340.hege.leskinen@pp.inet.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 12 Jul 1998, Heikki Leskinen wrote: > C:\cgg test.cpp -o test.exe > c:/djgpp/tmp\cccipkzk(.text+0x11) :test.cpp undefined referesce to 'cout' > c:/djgpp/tmp/ccc1pkzk(.text+0x16) :test.cpp undefined referesce to > 'ostream::oper > ator<<(char const *)' > C:\_ Please read the README.1ST file. It explains that for C++ programs you need to invoke gxx, not gcc, or mention the C++ libraries on the command line. > Using builtin specs. ^^^^^^^^^^^^^^^^^^^ Bad sign. This means you haven't set your DJGPP environment variable correctly. See README.1ST for details. It is strange, since your environment listing indicates that DJGPP *is* set. But AFAIK, using builtin specs is not how GCC should work in DJGPP.