From: mcheu Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem compiling c++ Date: Fri, 17 Aug 2001 15:27:33 -0400 Message-ID: References: <3B7CEDE9 DOT 17D0DCC9 AT hotmsil DOT com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: news.vaxxine.com!unknown AT ppp296 DOT digi-t3 DOT st-cath DOT niagara DOT net X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: Newsfeeds.com Lines: 58 X-Comments: This message was posted through Newsfeeds.com X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Report: Report abuse to "abuse AT Newsfeeds DOT com" Organization: Newsfeeds.com http://www.newsfeeds.com 90,000+ UNCENSORED Newsgroups. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 17 Aug 2001 10:17:38 GMT, Christopher all wrote: >Hi , > Thanks Hans for the help in installation !! Now i have another > >problem. >I am using > >gcc version 2.95.2 19991024 (release) > >I have problems compiling my trivial program. > > >#include >void main() >{ > cout << "My first C++ program\n\n"; >} > > > >I tried " gcc a.cpp " > use: gxx -o a.exe a.cpp or gpp -o a.exe a.cpp gcc is for compiling C programs. ----------------- Also, while your code will compile, it's seems like it's more in vogue to do it like this: #include using namespace std; int main (void) { cout << "My first C++ program\n\n"; return 0; } ----------- Thanks MCheu -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----