From: GianPiero Puccioni Subject: gcc problem with libraries To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List) Date: Tue, 2 Aug 94 15:43:23 LEG Mailer: Elm [revision: 66.25] Hi, all. I have problem with gcc. When I try to run it on a simple file it works perfectly, but if I give some more options ( in particular libraries) it doesn't work anymore. I posted a similar request weeks ago ( the -g switch gave the same problem) but got no answer, as I had a workaround for that problem I didn't insist but this time I'll need help. The problem is this. The command: gcc -v -o proc3 proc3.o -lgru -lgrx -lm Gives me this output (libgru.a is a library of graphic utilities I made and put in the library directory) -----------------------output on stderr------------------- Reading specs from p:/djgpp/lib/specs gcc version 2.5.7 p:/djgpp/bin/cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=5 -Dunix -Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS -D__OPTIMIZE__ proc3.c c:/temp/cc000071 GNU CPP version 2.5.7 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: p:/djgpp/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.5.7/include /usr/include End of search list. p:/djgpp/bin/cc1.exe c:/temp/cc000071 -fno-builtin -quiet -dumpbase proc3.c -O -version -o c:/temp/cca00071 GNU C version 2.5.7 (80386, BSD syntax) compiled by GNU C version 2.5.7. p:/djgpp/bin/as.exe -o proc3.o c:/temp/cca00071 Reading specs from p:/djgpp/lib/specs gcc version 2.5.7 p:/djgpp/bin/ld.exe -o proc3 p:/djgpp/lib/crt0.o -Lp:/djgpp/lib proc3.o -lgru -lgrx -lm -lgcc -lc -lgcc p:/djgpp/bin/ld.exe: Can't open gcc ------------------------------------------------------------------- I suppose it means it can't find libgcc.a., but why? And why it's there twice? if I give by hand the last command "ld.exe ..." and so on it works! The same line! Other info: this is the output from go32 -------------------- go32 version 1.11.maint5 Copyright (C) 1993 DJ Delorie Lowest version I can run is 1.08 go32.exe usage: go32 [-d {debugger}] [{program} [{options} . . . ]] go32.exe build time was Sun May 01 17:42:22 1994 VCPI (Expanded) memory available: 13008 Kb Swap space available: 131040 Kb -------------------- I am using a 486 50 Mhz with DOS 6.2 and 4DOS 5.0d DJGPP is actually on a HP workstation connected with PC-NFS as disk P: can this be the problem? Will the new version fix this? Any help appreciated. GianPiero -- **************************************************************************** * Istituto Nazionale di Ottica GianPiero Puccioni * * Largo E.Fermi 6 E-Mail : gip AT firefox DOT ino DOT it * * I-50125 Firenze - ITALY c=it;a=garr;p=ino;o=firefox;s=gip * * Tel +39 55 23081 - Fax +39 55 2337755 * ****************************************************************************