delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/02/05:18:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Wed, 2 Jan 2002 12:13:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: schaecsn <schaecsn AT gmx DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: cannot find -lgcc
In-Reply-To: <3C32B63E.473EBF65@gmx.de>
Message-ID: <Pine.SUN.3.91.1020102120646.29333A-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 Wed, 2 Jan 2002, schaecsn wrote:

> that was my intention but most output scrolls away and I have no clue
> how to write the output into a textfile unter dos. the unix way - a
> little bit simplified - doesn't work: gcc -v hello.c > out   or  gcc -v
> hello.c 2> out).

It will work if you install the ported Bash and invoke the command from 
Bash.

ALternatively, the program `redir' supplied with DJGPP can redirect 
stderr, like this:

   redir -o out -eo gcc -v hello.c

(This is in the FAQ, btw.)

> attempt to open c:/djgpp/lib/libgcc.a failed
> attempt to open c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a failed
> attempt to open c:/djgpp/bin/libgcc.a failed
> attempt to open c:/djgpp/lib/libgcc.a failed

Hmm... that's strange.

What if you modify the compilation command like this (this is one long 
line):

   gcc hello.c c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a \
    c:/djgpp/lib/libc.a c:/djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a

Does it work then?

- Raw text -


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