delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <3C32376B.4668A3B4@gmx.de> |
From: | schaecsn <schaecsn AT gmx DOT de> |
X-Mailer: | Mozilla 4.76 [en] (X11; U; Linux 2.4.17 i586) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | cannot find -lgcc |
Lines: | 50 |
Date: | Tue, 01 Jan 2002 22:25:51 GMT |
NNTP-Posting-Host: | 165.247.202.153 |
X-Complaints-To: | abuse AT earthlink DOT net |
X-Trace: | newsread2.prod.itd.earthlink.net 1009923951 165.247.202.153 (Tue, 01 Jan 2002 14:25:51 PST) |
NNTP-Posting-Date: | Tue, 01 Jan 2002 14:25:51 PST |
Organization: | EarthLink Inc. -- http://www.EarthLink.net |
X-Received-Date: | Tue, 01 Jan 2002 14:25:48 PST (newsmaster1.prod.itd.earthlink.net) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
hi just installed djgpp-2.03, gcc-3.0.3 and some other utilites. that's my environment: msdos 5.0 in a linux dos box. it's a fresh install of dos and djgpp-2.03 etc. >set COMSPEC=C:\COMMAND.COM PATH=C:\DOS;C:\DJGPP\BIN;C:\DJGPP\GNU\EMACS\BIN;C:\UTILS;C:\GPM\BIN DJGPP=C:\DJGPP\DJGPP.ENV TZ=pacific TMP=C:\TMP TMPDIR=C:\TMP TEMP=C:\TEMP PROMPT=$p$g >dir c:\djgpp\djgpp.env DJGPP ENV 3522 12-24-99 3:19p so, when compiling a hello world program I get this >gcc hello.c -o hello.exe -O2 -Wall c:/djgpp/bin/ld.exe: cannot find -lgcc collect2: ld returned 1 exit status Well, I do have libgcc.a: >find / ¦ grep libgcc.a /djgpp/lib/gcc-lib/djgpp/3.03/libgcc.a when I compile a C file with -v I get that at the end: c:/djgpp/lib/gcc-lib/djgpp/3.03/collect2.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.03 -Lc:/djgpp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/ gcc-lib/djgpp/3.03/../../.. C:\TMP\cc0iOfUR.o -lgcc -lc -lgcc -Tdjgpp-x.djl c:/djgpp/bin/ld.exe: cannot find -lgcc collect2: ld returned 1 exit status collect seems to be something like a linker. collect's path obviously does include the path to libgcc.a. what's going wrong? thanks for any enlightment - Stefan -- ___ ___ __ | Name: Stefan Schäckeler / / / /____ (__)__ ___ | E-mail: schaecsn AT gmx DOT de / /_/ / _ \/ /\ \/ / | day: Windows 2000, HP-UX 10.20 \___,__/__//__/__/ /__/\__\ | night: Linux 2.4, NetBSD-Alpha 1.5.2
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |