![]() |
|
Stupid Problem (can't compile using DJGPP) |
Jerome C
Member #3,706
July 2003
|
I'm almost embarrased to ask for this help, but for some reason I can't compile any of my allegro programs on my new computer. I put DJGPP and Allegro on my old computer, years ago (running Windows 98), and it was working fine. Recently I got a new computer (Windows XP Pro) and I had put DJGPP on it. My old C++ programs have compiled and ran fine, but I added Allegro, and when I try an old program I did using Allegro I get an error. Even a simple "Hello World" with allegro gives me this: Quote: C:\Documents and Settings\Jerome\My Documents\My Computer Programs\infix.cpp:2: allegro.h: No such file or directory (ENOENT) Now it's been a couple years since I installed allegro (on my old computer), and this time it's XP instead of 98. I figured it had something to do with my Enviornment Variables, but I tried a few things that didn't work. Any ideas? I'd really appreciate it. The location of DJGPP is C:\DJGPP In my enviornment variables I have a variable called "DJGPP": Then in the variable PATH I have: |
X-G
Member #856
December 2000
![]() |
DJGPP is a DOS compiler, not a Windows compiler. It does not work on Windows XP. Throw it out and get MinGW. -- |
Jerome C
Member #3,706
July 2003
|
Yes, yes... DJGPP is a DOS compiler, but my DJGPP C++ programs compile in Windows XP, and run fine. I've also compiled Allegro programs under Windows XP before, using DJGPP, but I wasn't the one who set it up. So anyway, I know it'll work. I just need to know what I'm missing here. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
First off, X-G is correct. While DOS programs might work on your XP computer, they will not necessarily work on everyone's. They don't work on mine. (I don't get any sound. Graphics are limited to 320x240. Performance is dreadful.) You'll be far better off using a Windows compiler if you want everyone to be able to run your programs. Regarding your error, it seems that you did not copy the Allegro headers to the DJGPP include folder. |
ReyBrujo
Moderator
January 2001
![]() |
Did you compile Allegro? (fix djgpp, make, make install?) -- |
Jerome C
Member #3,706
July 2003
|
Thanks ReyBrujo. I did the "fix DJGPP", and "make," but forgot to do "make install." I'm an idiot. hahaha, thanks again. It works perfectly now. However, I suppose I should move to MinGW. I'm looking on the downloads page at mingw.org and see that it says to download "gcc-core-3.4.4-20050522-1.tar.gz" to get thecore C compiler, download, and you can add on other languages. What about further below it lists stuff like MinGW Runtime, MinGW Utilities, Windows API, etc. Do I need those as well, as long as other stuff? Sorry, I'm new to this. |
ReyBrujo
Moderator
January 2001
![]() |
My suggestion: Either download from here (the latest full package, 14mb), or download the newer installer from here. It is a 800kb download, which will download and install the packages you need (around 40mb). Choose whichever you want. Easier, the first one. More complete, the second one. Also, I would suggest to remove djgpp from your PATH before installing MinGW, so that the two compilers don't get mixed (in example, you do make and it executes the djgpp one because the MinGW one is renamed to mingw32-make.exe, etc). -- |
Johan Halmén
Member #1,550
September 2001
|
You could try to install Win98 on your new computer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
Corelian
Member #3,376
March 2003
![]() |
Quote: My suggestion: Either download from here [prdownloads.sourceforge.net] (the latest full package, 14mb), or download the newer installer from here [prdownloads.sourceforge.net]. It is a 800kb download, which will download and install the packages you need (around 40mb). Note that the latest full package is from September 2003, so it's quite old. Using the latest stable version is recommended and if you hate the installer or wish to install it on a machine without an internet connection you can get the zip-files you need separately. http://www.mingw.org/download.shtml said: If you want to download the minimal set of tar.[gz|bz2] you will need the mingw-runtime, w32api, binutils and gcc tarball packages.
|
|