From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: cant compile c++ Date: Tue, 21 Sep 1999 03:03:48 -0400 Content-Transfer-Encoding: 7bit References: <37E6FEDE DOT 38C7CF74 AT pop DOT slkc DOT uswest DOT net> X-Posted-Path-Was: not-for-mail X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: 21 Sep 1999 07:01:44 GMT X-ELN-Insert-Date: Tue Sep 21 00:05:28 1999 Organization: Nocturnal Aviation Lines: 28 Mime-Version: 1.0 NNTP-Posting-Host: dialup-209.246.107.148.newyork2.level3.net Message-ID: <37E72DD4.76EF1BC4@earthlink.net> X-Mailer: Mozilla 4.61 [en] (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com bari AT pop DOT slkc DOT uswest DOT net wrote: > > gcc, gcc, and gpp won't compile my c++ program, and yes, > DJGPP.ENV does have LFN set to Y, here is the output I get > when I try to compile... > > In function 'int main(...)': > 'cout' undeclared (first use this function) > (each undeclared function identifier is reported only once > for each function it appears in.) > 'g' undeclared (first time use this function) > > what is going on? Try #include I know it seems impossible that you might have omitted this from your code, but we all make little mistakes at times. -- Martin Ambuhl mambuhl AT earthlink DOT net __________________________________________________________ Fight spam now! Get your free anti-spam service: http://www.brightmail.com