From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP configure (+output) Date: Wed, 26 Feb 1997 22:25:46 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 63 Message-ID: <331528EA.3241@cs.com> References: <3314D424 DOT 38F4 AT wineasy DOT se> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp202.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Johan Davidsson wrote: > > C:\usr\local\GNUC\gcc272b\bin>gcc -v -o stubify stubify.c > gcc version 2.7.2 > cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 > -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 > -D__GO32 -D__ > MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) > stubify.c C:\WINDOWS\TEMP\ccbaaaaa > GNU CPP version 2.7.2 (80386, BSD syntax) > #include "..." search starts here: > #include <...> search starts here: > /usr/local/include > /usr/local/go32/include > /usr/local/lib/gcc-lib/go32/2.7.2/include > /usr/include Right here it is obvious that you aren't setting up your DJGPP environment correctly. According to the 'readme.1st' file that comes with DJGPP, you must set the DJGPP environment variable to point to the location of the 'djgpp.env' file in the root directory of your installation. The following command should do the trick: SET DJGPP=C:\DJGPP\DJGPP.ENV. This of course assumes that you installed DJGPP in C:\DJGPP - if you put it elsewhere you'll need to change the line appropriately. But I'm also confused by something else: > C:\usr\local\GNUC\gcc272b\bin>gcc -v -o stubify stubify.c What in the heck is this? Did you really manually alter the DJGPP installation to place gcc in this directory, or do you have a different version of gcc hanging around on your computer? DJGPP is designed to be placed in a very simple MS-DOS style directory structure, starting with the root directory and containing subdirectories named 'bin', 'include', 'lib', 'src', etc. If you've modified the DJGPP installation by moving the programs all over the place it won't work at all without a lot of modification. > End of search list. > cc1 C:\WINDOWS\TEMP\ccbaaaaa -quiet -dumpbase stubify.c -version -o > C:\WINDOWS\ > TEMP\cccaaaaa > GNU C version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2. > as -o C:\WINDOWS\TEMP\ccdaaaaa C:\WINDOWS\TEMP\cccaaaaa > ld -o stubify crt0.o C:\WINDOWS\TEMP\ccdaaaaa -lgcc -lc -lgcc > ld.exe: cannot open -lgcc: File in wrong format What's even wierder is that you appear to be attempting to compile 'stubify' with this fragment, not your program. What exactly was the command line you used to compile? Again, I recommend that you try out DJVERIFY. Even if it totally bombs on you, the logfile should be informative. :) -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------