473,387 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

INTERNAL COMPILER ERROR

I write some project, and after few lines (ok, not few, after a lot of
lines) i got internal compiler error.
After few hours of looking trough my code, I find error: two same names
in typedef and in class. So, I write
simple console app with:

typedef unsigned int UI32;

class UI32
{
};

Compile, and BUM! Again, internal compiler error:

"INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information"

I am workin on Visual Studio 2003, on XP + sp2. I try to use google to
see is there anything about this, but no (realy, i did not look in
detail).

Is there any patch/fix for that, or ...

Best,
Zaharije Pasalic

Jan 25 '07 #1
6 2024
Hallo pasalic!
typedef unsigned int UI32;

class UI32
{
};
This is not valid C++:

Comeau C/C++ 4.3.8 (Aug 19 2006 13:36:48) for ONLINE_EVALUATION_Alpha1
Copyright 1988-2006 Comeau Computing. All rights reserved.
MODE:strict errors C++

"ComeauTest.c", line 3: error: invalid redeclaration of type name "UI32"
(declared
at line 1)
class UI32
^

1 error detected in the compilation of "ComeauTest.c".
But of course... it should not generate an "Internal Compiler" error.
You can report this bug via
http://connect.microsoft.com/VisualStudio/feedback/
With VS2005 (SP1) it generates an error:

1>c:\localprojects\cpp\cpp.cpp(660) : error C2371: 'UI32' :
redefinition; different basic types
1 c:\localprojects\cpp\cpp.cpp(657) : see declaration of 'UI32'
Have you tried with VS2003-SP1?

Greetings
Jochen
Jan 25 '07 #2
I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
Jan 25 '07 #3

eddie geer je napisao:
I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
Does anybody have VS 2005 to check this? I will try, if I find 2005.

Best,
Zaharije Pasalic

Jan 26 '07 #4

pasalic.zahar...@gmail.com je napisao:
eddie geer je napisao:
I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.

Does anybody have VS 2005 to check this? I will try, if I find 2005.

Best,
Zaharije Pasalic
On VS 2005, it is ok. No internal error.

Best,
Zaharije Pasalic

Jan 26 '07 #5
Hi pasalic!
eddie geer je napisao:
>I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.

Does anybody have VS 2005 to check this? I will try, if I find 2005.
As I said in my first posting: It works with VS2005 (SP1)...

Greetings
Jochen
Jan 26 '07 #6

Jochen Kalmbach [MVP] je napisao:
Hi pasalic!
eddie geer je napisao:
I tried it with VS2003-SP1 and I get a INTERNAL COMPILER ERROR.
Does anybody have VS 2005 to check this? I will try, if I find 2005.

As I said in my first posting: It works with VS2005 (SP1)...

Greetings
Jochen
Sorry, my miss-look.

best,
Pasalic Zaharije

Jan 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to...
30
by: Neil Zanella | last post by:
Hello, Allow me to share my frustrations with GNU g++. This is the second time something similar happens to me: I can't find anything wrong with my C++ program and yet I get segfaults, and...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
1
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal...
4
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The...
19
by: Martin Oddman | last post by:
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier (Foo.DataManager), one business tier (Foo.Kernel) and...
1
by: pj | last post by:
Oh, I forgot to list the error messages; I would be delighted if someone could explain how to deduce which line number in which file is the one that the VC compiler cannot handle. Actually I'm...
6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
0
by: Jim Heavey | last post by:
Internal Compiler Error: stage 'BEGIN' Hello, I had an application which was working just fine and I decided to modify all database access within the application to utilizie a new Namespace that I...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.