Date: Thu, 15 Mar 2001 11:01:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Run Error, need help! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 15 Mar 2001, CJ wrote: > when I compile, it says no errors, when i go to link it says: > > c:/djgpp/bin/ld.exe -o hello.exe > c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/2.81 -Lc:/dj > gpp/bin -Lc:/djgpp/lib hello.o -lstdcx -Tdjgpp.djl -lgcc -lc -lgcc > c:/djgpp/bin/stubify.exe -v hello.exe > The error was: Invalid argument (EINVAL) > no errors Please try the following command from the DOS box's command prompt, and tell what did it print: gcc -v -o hello hello.o -lstdcx (Note that I used "-o hello", not "-o hello.exe": this is done on purpose.) Also, it looks like you have an old version of the compiler. What does each of the following commands print? gcc --version ld --version dir c:\djgpp\bin\stubify.exe