From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: My GCC does not compile the C++ source Date: 07 Aug 2000 13:59:12 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 31 Sender: nate AT mercury DOT bitbucket Message-ID: <833dkgwzxb.fsf@mercury.bitbucket> References: <398f215c DOT 35904767 AT news DOT free DOT fr> X-Complaints-To: newsabuse AT supernews DOT com User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com donho AT altern DOT org (Don HO) writes: > Hi, > > There is no problem to compile a C source for my GCC. The file below > was compiled without problem : > > #include > int main() { > printf("Hello World\n"); > } > > But it doesn't work with this one : > > #include > int main() { > int x; > cin >> x; > cout << "Hello, World! I am " << x << " Today!" << endl; > } > > After executing "redir -o gcc.log -eo gcc -v ccaa.cc", the contenent > of gcc.log is : [...] Use the command `gpp' to compile C++, instead of `gcc'. -- Nate Eldredge neldredge AT hmc DOT edu