From: George Kinney Newsgroups: comp.os.msdos.djgpp Subject: Re: Libs and dissassembly (again) Date: Thu, 23 Jan 1997 23:12:28 -0500 Organization: Dayton Microcomputer Association; Dayton, Ohio, USA Lines: 34 Message-ID: <32E836AC.2C3A@logan.net> References: <01bc0686$36fa7820$3957f8ce AT 698130> NNTP-Posting-Host: ln-248.logan.net 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 Craig Flint wrote: > > I'm new at DJGPP and I coudln't figure out how to compile libs. As well I > couldn't figure out how to dissassemble an object file (if it is possible > in DJGPP) or view the assembly code that DJGPP produces from a C or C++ > file. > > Any help would be very appreciated. > > Please respond on the news group as I no longer have an e-mail address! > > Thanks in advance, > > G. Flint > > I posted the above message on January 16, however nobody answered and I > really need an answer so _please_ help me!!!! I realize these questions > mights sound silly to experienced DJGPP users but if you can answer them it > will be very appreciated. > > Thanks Again.Well, I can answer two of them for you. To create librarys, you'll need to use ar (it's in the bin directory, and documented under Binutils in the info files.) You'll also need everything compiled into object files (use -c for gcc). The command line I usually use is "ar -ruv {libname} *.o" this seems to work. I don't know if you can decompile objects, I think GDB (it's at http://www.delorie.com with the rest of DJGPP )can, but I'm not sure about that, it would be easier to compile the source with the command option -a, which will create an .s file you can read. anyways, hope I was of some help.