delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Martin Ambuhl <mambuhl AT earthlink DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
X-Accept-Language: | en-us, en, de, fr, ru, el, zh |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: [GPC] "cannot find -lgcc" |
References: | <1n1fid5gv57x1 DOT tdz7w1cj7vq8 DOT dlg AT 40tude DOT net> <oY4Eb.3129$Ts5 DOT 327 AT newsread2 DOT news DOT atl DOT earthlink DOT net> <1r28svmseuy2s DOT 1l3r8tdcn4j1t DOT dlg AT 40tude DOT net> |
In-Reply-To: | <1r28svmseuy2s.1l3r8tdcn4j1t.dlg@40tude.net> |
Lines: | 74 |
Message-ID: | <TcqEb.4128$wL6.517@newsread1.news.atl.earthlink.net> |
Date: | Thu, 18 Dec 2003 22:52:35 GMT |
NNTP-Posting-Host: | 65.178.17.76 |
X-Complaints-To: | abuse AT earthlink DOT net |
X-Trace: | newsread1.news.atl.earthlink.net 1071787955 65.178.17.76 (Thu, 18 Dec 2003 14:52:35 PST) |
NNTP-Posting-Date: | Thu, 18 Dec 2003 14:52:35 PST |
Organization: | EarthLink Inc. -- http://www.EarthLink.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Peter Gertner wrote: >>Using gpc 3.2.2 (I otherwise use gcc 3.3.2), I cannot reproduce this error. > > I also use gpc3.22. Do you also have gcc3.22 installed or do you only use > gcc3.32? You should have gcc 3.2.2 installed. Compiling your program (name a.pas) with gpc -v a.pas yields the following. Compare it to yours Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.22/specs Configured with: /djgpp/b/gnu/gcc-3.22/configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls --enable-languages=pascal --enable-checking Thread model: single gpc version 20030507, based on gcc-3.2.2 c:/djgpp/lib/gcc-lib/djgpp/3.22/gpcpp.exe -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -D__NEED_NO_ALIGNMENT__=1 -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.22/djgpp.ver a.pas -famtmpfile=\tmp/ccGGMoHr.gpa \tmp/ccm4lJGM.i GNU Pascal Compiler PreProcessor version 20030507, based on gcc-3.2.2 (80386, BSD syntax) c:/djgpp/lib/gcc-lib/djgpp/3.22/gpc1.exe \tmp/ccm4lJGM.i -quiet -dumpbase a.pas -version -famtmpfile=\tmp/ccGGMoHr.gpa -o \tmp/cc2rV3F7.s GNU Pascal version is actually 20030507, based on gcc-3.2.2 GNU Pascal version 3.2.2 (djgpp) compiled by GNU C version 3.2.2. c:/djgpp/bin/as.exe --traditional-format -o \tmp/ccyaYERy.o \tmp/cc2rV3F7.s c:/djgpp/lib/gcc-lib/djgpp/3.22/collect2.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib/gcc-lib/djgpp/3.22 -Lc:/djgpp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.22/../../.. \tmp/ccyaYERy.o -lgpc -lm -lgcc -lc -lgcc -Tdjgpp-x.djl c:/djgpp/bin/stubify.exe -v a.out > If it works fine, could you please look for a library with the name "gcc"? I have several: find /djgpp -iname 'libgcc.a' /djgpp/lib/gcc-lib/djgpp/3.2/libgcc.a /djgpp/lib/gcc-lib/djgpp/3.22/libgcc.a /djgpp/lib/gcc-lib/djgpp/3.23/libgcc.a /djgpp/lib/gcc-lib/djgpp/3.31/libgcc.a /djgpp/lib/gcc-lib/djgpp/3.32/libgcc.a The one you need is /djgpp/lib/gcc-lib/djgpp/3.22/libgcc.a > It should be present, or our compilers are not the same... Present, several times over. > Could you then also look for the archive that contains this file or email > me the file (just the library) if it is not too large (less than 1MB, my > address: peter DOT gertner AT gmx DOT de, please start you subject with "[USENET]") Just download gcc 3.2.2 from the usual sites. Remember to reinstall gcc 3.3.2 after installing gcc 3.2.2 -- Martin Ambuhl
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |