Xref: news2.mv.net comp.os.msdos.djgpp:3427 From: elric AT wheel DOT ucdavis DOT edu (Jeffrey Taylor) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with V2 needed Date: 3 May 1996 16:45:45 GMT Organization: Davis Community Network - Davis, California, USA Lines: 22 Message-ID: <4mdd7p$20g@mark.ucdavis.edu> References: <4mcsi6$dd1 AT lyra DOT csx DOT cam DOT ac DOT uk> NNTP-Posting-Host: wheel.dcn.davis.ca.us To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp R.L.S. Smith (rlss2 AT thor DOT cam DOT ac DOT uk) wrote: : I have installed DJGPP V2 on my computer but when I try to compile : something I get an error message: stubify.exe hello.exe not COFF. The : compilation works fine up until this point. The command I used was: : gcc -v -o hello.exe hello.c Try: gcc -v hello.c -o hello gcc normally outputs COFF format, which stubify adds executable stub to that loads a COFF executable to. gdb expects the COFF file, so it is happy. MS-DOS expects a .EXE format file and coughs on the COFF. The above line genrates a COFF file in hello. and EXE executable in hello.exe. "gdb hello" debugs the COFF in "hello." and "hello" at the MS-DOS prompt runs "hello.exe" and everyone is happy. -- ============================================ Without my guitar, I am a poet without arms. - Michael Bloomfield ============================================