Date: Sat, 17 Feb 2001 21:50:23 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: rpolzer AT web DOT de (Rudolf Polzer) Message-Id: <3099-Sat17Feb2001215021+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: Subject: Re: Newbie with invalid argument References: <20010217111622 DOT 24753 DOT 00001357 AT ng-fl1 DOT aol DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: rpolzer AT web DOT de (Rudolf Polzer) > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 17 Feb 2001 19:54:53 +0100 > > > > gxx -o hello.exe hello.o > > rename of hello.o to hello.exe failed. > > the error was: invalid argument (ENIVAL) > > You have to run gcc: > > gcc -o hello.exe hello.o > > Or, if you only have one .cpp file: > > gcc -o hello.exe hello.cpp ??? If at all relevant, this is backwards: C++ programs need to be linked with gxx or gpp, not gcc. In any case, even using gcc, you should never see EINVAL and the error message cited by the OP (see above).