Xref: news2.mv.net comp.os.msdos.djgpp:3419 From: alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (Alexander Lehmann) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with V2 needed Date: 3 May 1996 16:34:56 GMT Organization: Technische Hochschule Darmstadt Lines: 26 Message-ID: <4mdcjg$dv5@rs18.hrz.th-darmstadt.de> References: <4mcsi6$dd1 AT lyra DOT csx DOT cam DOT ac DOT uk> NNTP-Posting-Host: hp62.rbg.informatik.th-darmstadt.de 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 : And I am using CWSDPMI. When I try to run the file hello.exe it : crashes, but when I load it into the debugger and run it it works fine. : According to the FAQs the output from the command I used should be an .exe : file. So why does stubify expect oit to be a COFF file? I looked at the : file hello.exe with a hex editor and the first two bytes are not 4d 5c which : they should be for an .exe file. Can anyone tell me what format of file gcc : is outputing and how I can get my program to compile and run properly? Try leaving out the .exe extension, the file will be converted to .exe by the stubify program called at the end of the link stage. (Though I thought .exe works, maybe this depends on the filesystem used?) bye, Alexander -- Alexander Lehmann, | "On the Internet, alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (plain) | you're a dog."