www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/15/04:04:45

Date: Thu, 15 Mar 2001 11:01:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Run Error, need help!
In-Reply-To: <ygUr6.339$Xm3.43833@newshog.newsread.com>
Message-ID: <Pine.SUN.3.91.1010315110043.6041O-100000@is>
MIME-Version: 1.0
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019