X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f X-Originating-IP: [128.107.253.44] From: "P S" To: djgpp AT delorie DOT com Subject: lgcc error with DJGPP on Windows 2000 Date: Fri, 29 Mar 2002 13:06:26 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Mar 2002 19:06:27.0079 (UTC) FILETIME=[D3A00970:01C1D754] Reply-To: djgpp AT delorie DOT com I'm running DJGPP on Windows 2000. I have downloaded the latest patches from Simtel and used unzip32 to unzip the files. The environment variables are set properly (DJGPP=D:\DJGPP\DJGPP.ENV). Here's the version information: >>>>>> D:\MyCode\mycpp>gcc --version 2.953 <<<<<< Whenever I use gxx to compile my C++ programs I get a 'cannot find -lgcc' error. So I tried with gcc and the strange thing is that if I just compile one source it works fine. If I try to add another source file (with a dummy routine) I get the lgcc error! Here's the output from compiling with one source: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> D:\MyCode\mycpp>gcc -v tr1.c Reading specs from d:/djgpp/lib/specs gcc version 2.95.3 20010315/djgpp (release) d:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_MINO R__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i38 6__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -D__i386 - D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 tr1.c d:/djgpp/tmp\ccr7nyvh.i GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/lib/gcc-lib/djgpp/2.953/include d:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include End of omitted list. d:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe d:/djgpp/tmp\ccr7nyvh.i -m486 -malign- jumps=2 -malign-loops=2 -malign-functions=2 -quiet -dumpbase tr1.c -version -o d :/djgpp/tmp\ccSVy2is.s GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version 2.95.3 20010315/djgpp (release). d:/djgpp/bin/as.exe -o d:/djgpp/tmp\cc713QgI.o d:/djgpp/tmp\ccSVy2is.s d:/djgpp/bin/ld.exe d:/djgpp/lib/crt0.o -Ld:/djgpp/lib -Ld:/djgpp/lib/gcc-lib/d jgpp/2.953 -Ld:/djgpp/bin -Ld:/djgpp/lib d:/djgpp/tmp\cc713QgI.o -Tdjgpp.djl -lg cc -lc -lgcc d:/djgpp/bin/stubify.exe -v a.out stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie stubify: a.out -> a.000 -> a.exe <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Everything looks fine and works fine. Now, when I just add another source file: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> D:\MyCode\mycpp>gcc -v tr1.c a.c Reading specs from d:/djgpp/lib/specs gcc version 2.95.3 20010315/djgpp (release) d:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_MINO R__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i38 6__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -D__i386 - D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 tr1.c d:/djgpp/tmp\cc5bRuXq.i GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/lib/gcc-lib/djgpp/2.953/include d:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include End of omitted list. d:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe d:/djgpp/tmp\cc5bRuXq.i -m486 -malign- jumps=2 -malign-loops=2 -malign-functions=2 -quiet -dumpbase tr1.c -version -o d :/djgpp/tmp\ccUeeYmQ.s GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version 2.95.3 20010315/djgpp (release). d:/djgpp/bin/as.exe -o d:/djgpp/tmp\ccl9y7Mk.o d:/djgpp/tmp\ccUeeYmQ.s d:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_MINO R__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i38 6__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -D__i386 - D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 a.c d:/djgpp/tmp\cc5bRuXq.i GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/lib/gcc-lib/djgpp/2.953/include d:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include End of omitted list. d:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe d:/djgpp/tmp\cc5bRuXq.i -m486 -malign- jumps=2 -malign-loops=2 -malign-functions=2 -quiet -dumpbase a.c -version -o d:/ djgpp/tmp\ccUeeYmQ.s GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version 2.95.3 20010315/djgpp (release). d:/djgpp/bin/as.exe -o d:/djgpp/tmp\cc2ph9U3.o d:/djgpp/tmp\ccUeeYmQ.s d:/djgpp/bin/ld.exe d:/djgpp/lib/crt0.o -Ld:/djgpp/lib -Ld:/djgpp/lib/gcc-lib/d jgpp/2.953 -Ld:/djgpp/bin -Ld:/djgpp/lib d:/djgpp/tmp\ccl9y7Mk.o d:/djgpp/tmp\cc 2ph9U3.o -Tdjgpp.djl -lgcc -lc -lgcc d:/djgpp/bin/ld.exe: cannot find -lgcc <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< I get the error! The library paths are identical in both instances. Any assistance is appreciated. Thanks. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com