Bug 30741 - Error when trying to compile under DOS on a Vista machine
Summary: Error when trying to compile under DOS on a Vista machine
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-09 03:01 UTC by George Giordano
Modified: 2007-09-11 10:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Giordano 2007-02-09 03:01:42 UTC
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?
Comment 1 DJ Delorie 2007-02-09 03:10:34 UTC
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 ?
Comment 2 George Giordano 2007-02-09 03:42:51 UTC
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 ?


Comment 3 DJ Delorie 2007-02-09 19:14:57 UTC
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.
Comment 4 George Giordano 2007-02-11 01:44:43 UTC
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.


Comment 5 Francois-Xavier Coudert 2007-09-11 10:15:41 UTC
(In reply to comment #4)
> Do I need to file an update to the bug or can you just close it out?

Closing.