From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Microsoft C graphic library w/ DGJPP Date: Wed, 04 Dec 1996 01:29:31 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 56 Message-ID: <32A5447B.18A3@cs.com> References: <329dc491 DOT 5155940 AT news DOT earthlink DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp101.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jon Osbeck DJ-Gateway: from newsgroup comp.os.msdos.djgpp Jon Osbeck wrote: > > Hello, I need to know how to setup up DJGPP 2.0 so that I can > run the game examples from a book called "Teach Yourself Game > Programming in 21 Days" by LaMothe. The book wants you to have a > Microsoft compatible compiler. (MS C\C++ 7.0 for DOS) > > Is it it do-able in DJGPP to run Microsoft C source code? (The book > uses Microsoft graphic functions... how would I do that in DJGPP?) Graphics under protected mode are completely different than under real mode, which is what MS C uses. You need to have a good look at chapters 10, 17, and 18 of the DJGPP Frequently Asked Questions list, available as ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq202b.zip. DJGPP _cannot_ run Microsoft C code, because MS C code is designed for a far more primitive compiler. :) > Also, how do you set up DJGPP? Can someone e-mail me what to do to > the AUTOEXEC.BAT, and CONFIG.SYS (also what .zip files do I need from > the site), also how can I run and compile programs using RHIDE. (v1.0 > beta 5, is there a newer version, I can't seem to run or compile > anything!). When you downloaded the DJGPP files, did you notice a file named "readme.1st"? If so, did you actually read it? It gives precise and complete instructions for setting up your AUTOEXEC.BAT, tells you what .zip files you need, and gives you basic instructions for using the compiler. As for RHIDE, it would greatly help if you told us exactly what the problems you are having are. If it's simply not being able to build, then you need to create a project using the Project menu. Also, RHIDE beta 5 is not the latest version; beta 6 is available from Robert Hoehne's web site (http://www.tu-chemnitz.de/~rho). > Also is there a Windows Help File for the syntax, language, etc of > DJGPP? DJGPP is ANSI C/C++. Do you mean the syntax of the DJGPP tools? If so, you need to get the file 'v2gnu/txi390b.zip' and use the 'info' program to read the DJGPP documentation. All the instructions for using the various DJGPP utilities are right there in front of you. The FAQ (v2/faq202b.zip) that I mentioned above is also a fantastic source of information for users who are switching to DJGPP from other compilers. -- John M. Aldrich * Anything that happens, happens. * Anything that, in happening, causes something else to happen, causes something else to happen. * Anything that, in happening, causes itself to happen again, happens again. * It doesn't necessarily do it in chronological order, though. --- Douglas Adams