From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: problems compiling c++ in rhide Date: Sat, 4 Sep 1999 10:58:33 -0500 Organization: Rose-Hulman Institute of Technology Lines: 41 Message-ID: <7qrfmq$qvq$1@solomon.cs.rose-hulman.edu> References: <7qjmhn$o47$1 AT nickel DOT uunet DOT be> <37D0B102 DOT 389529B AT earthlink DOT net> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 936460826 27642 137.112.205.146 (4 Sep 1999 16:00:26 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 4 Sep 1999 16:00:26 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin Ambuhl wrote: > > Nick de Graeve wrote: > > > > I tried to compile the trivial program "Hello World" ( test.cpp ) > > > > #include > > void main (){ > > cout << "Hello World"; > > } > > > > and I got the message > > > > "cannot specify -o with -c or -S and multiple compilations" > > > > What did I do wrong? > > In addition to using an illegal return type for main(), it appears Illegal return type? Some C/C++ programming books encourage a fellow to make main() a procedure. But maybe that's because I came from a Macintosh background, and this is DOS. > that you compiled "-o with -c or -S and multiple compilations." What the heck does that mean? Please specify the versions of the compiler and binutils you are using, along with the entire command line you gave to gcc. > Martin Ambuhl mambuhl AT earthlink DOT net Damian Yerrick http://come.to/yerrick __________________________________________________________ > Fight spam now! > Get your free anti-spam service: http://www.brightmail.com Hotmail (http://www.hotmail.com) also filters spam, I believe.