From: mikegee AT creator DOT dp DOT ua (Mike Gee) Newsgroups: comp.os.msdos.djgpp Subject: Re: MGL & DJGPP Date: Sat, 25 Dec 1999 00:04:58 +0200 Organization: ISP "Creator OnLine" Lines: 44 Message-ID: References: <38627A0A DOT 1C270E52 AT global2000 DOT net> NNTP-Posting-Host: ltty11.dnepr.net.ua X-Trace: ontario.dnepr.net.ua 946073154 44221 195.248.169.27 (24 Dec 1999 22:05:54 GMT) X-Complaints-To: abuse AT dnepr DOT net DOT ua NNTP-Posting-Date: 24 Dec 1999 22:05:54 GMT X-Newsreader: MicroPlanet Gravity v2.12 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Brendon (Andrea?) In article <38627A0A DOT 1C270E52 AT global2000 DOT net>, Thu, 23 Dec 1999 14:37:46 -0500, Andrea Ryan says... > Hello, > I am trying to use MGL with DJGPP in Windows 95. I downloaded the files > from the zip picker a few weeks ago. Are these the newest versions? > Have anyone here gotten MGL to work with DJGPP? > When I try to compile the sample files with gpp, I get undefined > references and when I use dmake (it came with MGL), it can't find > -lstdcx. I have put C and C++ include paths into my autoexc.bat file. DJGPP works nice with MGL, for me it works from gcc 2.8 and up. You don't need DMAKE at all. The problem is probably in your environment. First of all, I assume you downloaded precompiled MGL libs for DJGPP and installed it properly. If not, then I recommend that you do so. Building MGL from scratch would require tools and skills not included in DJGPP distribution and is generally not very funny thing to do. Precompiled libs for DJGPP are in archive md??dj2.exe, which can be downloaded from Scitech site. Also note there is file startmgl.bat in root Scitech directory, you must run it in the beginning of every MGL coding session at the DOS propmt. It sets up several environment variables for MGL to run properly; if you code with MGL frequently, you'll want to CALL this file from autoexec.bat. Second, you need to locate MGL libs for DJGPP. In default Scitech installation it is in %SCITECH%\LIB\DOS32\DJ2. There you will find mglcpp.a, mglfx.a, and several other libs, depending on your install option. If there is no such directory or it is empty, it means you installed MGL incorrectly; reinstall it. Third, you need to specify path to MGL libs and includes, when running GCC. Use -I option for include path and -L for lib path. Fourth, select MGL libraries you need to link. Use -l option. Five, build. If it works, ta-da! If no, check again 1-4, read TFM, kick your dog, ask for advice, anything. By the way, Scitech MGL comes with very nice manuals, in HTML and PDF, if you're not DLed them, I highly recommend you do it. -- Best regards, Mike