I installed DJGPP on my new laptop running Vista. When I type gcc filename.c I get the following error: C:\DJGPP\gcc410b\bin>GCC PROG1.C gcc.exe: Internal error: (null) (program cc1plus) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. I'm a hardware engineer taking my first C class andI have no idea what this means. This program compiles and runs fine on my XP machine as well as on my WIN2000 machine. Is this related to Vista or is it possible I didn't install DJGPP correctly?
For starters, gcc is case sensitive. When you passed it PROG1.C instead of prog1.c, you're telling it to compile a C++ program. Did you install the C++ compiler? Do you get the same error if you use prog1.c instead of PROG1.C ?
Subject: Re: Error when trying to compile under DOS on a Vista machine That was it. I thought I'd been mixing case all along and that it didn't matter under DOS but apparantly I'm mistaken. Now, it won't recognize stdio.h. I think this is an install problem. I wish there was a simpler install of gcc instead of this DJGPP. Thanks. From: dj at redhat dot com <gcc-bugzilla@gcc.gnu.org> Date: 2007/02/08 Thu PM 09:10:36 CST To: ggiordano@verizon.net Subject: [Bug c/30741] Error when trying to compile under DOS on a Vista machine ------- Comment #1 from dj at redhat dot com 2007-02-09 03:10 ------- For starters, gcc is case sensitive. When you passed it PROG1.C instead of prog1.c, you're telling it to compile a C++ program. Did you install the C++ compiler? Do you get the same error if you use prog1.c instead of PROG1.C ?
Did you follow the zip-picker instructions? You have to use a djgpp-aware unzip program to install, or the filenames get all messed up.
Subject: Re: Error when trying to compile under DOS on a Vista machine I had already installed DJGPP at work and it worked fine (Windows 2K). I installed it at home on my XP system and it didn't work. I installed it at home on my Vista machine and it didn't work. I took my Vista laptop to work, copied the complete install from my W2K machine onto my Vista machine and it now works. I have no idea why. I did all of this installing over a period of 3 days so I don't think I was doing anything differently each time. I don't need it on my XP home machine so I deleted it. As a hardware engineer, I find all this very puzzling but its now all working so I'll move on. Do I need to file an update to the bug or can you just close it out? Thanks for following up. From: dj at redhat dot com <gcc-bugzilla@gcc.gnu.org> Date: 2007/02/09 Fri PM 01:14:59 CST To: ggiordano@verizon.net Subject: [Bug c/30741] Error when trying to compile under DOS on a Vista machine ------- Comment #3 from dj at redhat dot com 2007-02-09 19:14 ------- Did you follow the zip-picker instructions? You have to use a djgpp-aware unzip program to install, or the filenames get all messed up.
(In reply to comment #4) > Do I need to file an update to the bug or can you just close it out? Closing.