From: adsgohere AT durchnull DOT de (Rudolf Polzer) Newsgroups: comp.os.msdos.djgpp Subject: Re: can't use cout? References: <992084850 DOT 568529 AT queeg DOT ludd DOT luth DOT se> X-DAUs: lesen Headers, ohne zu wissen, was das ist X-Homepage: http://www.durchnull.de User-Agent: slrn/0.9.6.3 (Linux) Date: Sun, 10 Jun 2001 14:03:24 +0200 Message-ID: Lines: 36 NNTP-Posting-Host: 213.6.42.120 X-Trace: 992168389 news.freenet.de 29362 213.6.42.120 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dave Lemmens wrote: > Error: 'cout' undeclared (first use this function) > > so it looks like he thinks it's a variable. 1. is wrong - use (without .h) 2. use std::cout (or write under the #include: using namespace std) > > "Martin Str|mberg" wrote in message > news:992084850 DOT 568529 AT queeg DOT ludd DOT luth DOT se... > > Dave Lemmens wrote: > > : I used DJGPP + RHIDE before, it worked great! > > : But now I want to compile a program (very easy one) > > : it doesn't work. > > > > : Example: > > : __________________________ > > : #include > > > > : int main() > > : { > > : cout << "test"; > > : return 0; > > : } > > : ___________________________ > > : This doesn't work ;-((( > > > > Define "doesn't work" and "work". -- #!/usr/bin/perl -- Random sig generator. Editor command in slrn => ~/siggs $F=shift;open H,"+<$F";$_=join"",;$s=index$_,"\n\n-- \n";$s<0||truncate H,$s;close H;system"$ENV{EDITOR} $F/dev/tty";$s=$n=0;for#sichtig (<~/siggs/*>){++$n;int rand$n or$s=$_};`(echo "\n\n-- ")|cat - $s>>$F`+nan