From: csweber AT flash DOT net (SpacemanSpiff) Newsgroups: comp.os.msdos.djgpp Subject: DJGPP Vs Mingw with Allegro Date: Wed, 23 May 2001 14:03:54 GMT Message-ID: <3b0bbd44.8863374@news.newzpig.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 199.34.81.144 X-Trace: news.newzpig.com 990621518 199.34.81.144 (23 May 2001 07:38:38 -0500) Lines: 49 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Let me describe some history. I wanted to enhance a little game I found, which I really like. It even runs on Win NT (most games are only '95/98) Also, the source is available on the web site. Being a C (DOS, Unix Console and WIN32) guy, I figured no big deal. The make file was written for gcc, so I downloaded DJGPP for DOS and installed it. I couldn't compile, because it needed Allegro. I downloaded Allegro, and installed it. I build the app, but it wouldn't run. I then discovered I needed the WIP version. So I downloaded it. I built it, it creates the window, gave me a virtual desktop 4X bigger ( I could only see the upper left) Then I noticed a reference in a header to Mingw32. So I downloaded it, and installed it. Now I have two batch files to set my console environment to the compiler of choice. I build Allegro with mingw, but I get a bunch of unresolved symbols (they seem to be date functions) when the test/examples are built. I also had to fix a #define to work under " WINNT < 0x0500" I recompiled the program with mingw, and it works (no sound yet, I'll dig into that). 'make install' did _not_ move the headers from the allegro dir, to the mingw dir. So I moved that by hand. My questions: What is different between DJGPP and MINGW? The game source is the same, the allegro is built for djgpp or mingw, and the lib is in the correct location so they are not crossing. Was it correct to copy the allegro headers to the mingw dir? They were installed in the djgpp dir after all... Is there any issue regarding that undefined compiler directive? (I think it was HMODULE in ddraw.h) There seems to be a repeated situation where I run make, it dies (lib not found, header not found, etc...). I run make again, and it finishes. __But I didn't cnage anything!__ Does anyone else have these problems? I'm spoiled by MSVC. Any 'gotcha's' when I want to run 'fixmsvc' and built it for that? I'll invite any comments on this, as I'm still trying to get a handle on these tools. -Scott Weber