From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Compiling CLIPS & coff2exe Date: Sat, 26 Oct 1996 11:45:32 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 55 Message-ID: <32725C4C.34FD@cs.com> References: <326F9A31 DOT 41D4 AT open DOT ac DOT uk> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: S DOT J DOT Masterton AT open DOT ac DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp trevor wrote: > > Hi, > I have been trying to compile CLIPS under djgpp > I have actually suceeded (supprisingly!) > But I would be interested to hear from anyone else who > has managed it to see if they have come up with better ways! > > Second question > if I run > coff2exe clips.exe > > why does it grow to 30MB + > (and then crash as i run out of disk space!) > > is it supposed to do this? > if so I will delete more stuff to make more room! > But if not does anyone have any clue! What version of DJGPP are you using to build CLIPS? 'coff2exe' is a v1.x artifact; v2 keeps it for compatibility but uses 'stubify' instead. Even with this, neither should add more than 2K or so to the final size of the executable file. Besides, I think you are using it incorrectly anyway: - In v1.x, gcc does not generate an executable automatically; you must run coff2exe on the image file it outputs. So "gcc ... -o clips clips.c ..." would produce the image file 'clips', which you would then run coff2exe on to get 'clips.exe'. - In v2, gcc automatically generates a fully stubbed executable, so you should never have to run 'coff2exe' or 'stubify' manually except in very odd situations. The same line used above ("gcc ... -o clips clips.c ...") would produce a 'clips' image, and a 'clips.exe' executable. If you specify "-o clips.exe" instead of "-o clips", only an executable is produced. This does NOT work with v1.x, however. If this doesn't help, please post the commands you use to compile, including any makefiles you use, and the output of gcc when invoked with the '-v' option. Good luck! P.S.: If you don't have version 2 of DJGPP, I highly suggest you get it from a nearby SimTel mirror. Visit http://www.delorie.com/djgpp, and look in the online FAQ for sites near you. Version 2.01 is the latest release. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------