473,386 Members | 1,773 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,386 software developers and data experts.

Internal Compiler Error (file msc1.cpp line 2701) in ATL COM project

Hi,

I would like to report some weird behavior which results in an internal
compiler error in VS.NET 2003 (VC++).

I have an ATL COM dll project which also uses MFC. This solution (workspace
at the time) was created in VS 6.0 using the current versions of ATL and MFC
at that time. Then it was upgraded to VS.NET 2002 and the respective
versions of ATL and MFC. So far everything has been fine.

Now I tried to compile this project in VS.NET 2003 and there is some very
strange behavior. Rebuilding the entire solution results in this message:

fatal error C1001: INTERNAL COMPILER ERROR compiler file msc1.cpp line
2701

I discovered that if I change the stdafx.h file to use windows version 0x500
(see listing below) then it compiles OK. But it seems like I should be able
to keep it at 0x400. Stanger still, if one of _WIN32_WINNT and WINVER is
0x400 and one is 0x500 (can't remember which was which) then it compiles in
DEBUG but results in the compiler error in RELEASE.

Does any one know how to get around this? Is this a known issue?

Thanks in advance,
Michael

------------- stdafx.h -----------------------
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif

#define WINVER 0x0500

#include <afxwin.h>
#include <afxdisp.h>

#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>
---------------------------------------------
Nov 16 '05 #1
5 4893
Michael,

I am not sure exactly what is going on here. The best thing would be to
take a look at a preprosser file. This will contain a reproduction of the
compilation issue. To do this perform the following steps:

1. Select the file that is generating the C1001.
2. Right click on the file and select the properties for the file
3. Under "C\C++->Command Line" and add /I (that is a capital i) to the
Additional Options.
4. The right click on the file and compile the file.

This will generate a .I file of same name as the file that you just
compled. You can zip up this file and e-mail it to me (just remove online
from the address).

We can take a look at his and see if this is a known issue and what a
possible work around is.

I am not sure exactly what the different #defines are including or
excluding to prevent the error. Since all that a C1001 tells us is that
this is a compiler error that the compiler did not handle it does not tell
us a whole lot. The preprossor file will tell us more. Let me know.

Thanks,
Zach

Microsoft PSS
za******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #2
One quick correction. Step 3 was incorrect:

3. Under "C\C++->Command Line" and add /I (that is a capital i) to the
Additional Options.

It should be:

3. Under "C\C++->Command Line" and add /P (that is a capital p) to the
Additional Options.

I apologize for the mistake.

Thanks,
Zach
Microsoft PSS
za******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #3
Hi Zach,

Thanks, I've been trying to get the compilation going per your instructions.
I was having a tough time getting /I to generate any files! I'll retry it
and get back to you.

Regards,
Michael

"Zach Kramer" <za******@online.microsoft.com> wrote in message
news:My**************@cpmsftngxa06.phx.gbl...
One quick correction. Step 3 was incorrect:

3. Under "C\C++->Command Line" and add /I (that is a capital i) to the
Additional Options.

It should be:

3. Under "C\C++->Command Line" and add /P (that is a capital p) to the
Additional Options.

I apologize for the mistake.

Thanks,
Zach
Microsoft PSS
za******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #4
Hi Michael,

Thanks again for using the Microsoft Newsgroups! I wanted to find out if
Zach's previous reply has resolved your problem or not. Can you provide
the community with an update to your issue please?

Thanks again,

Brett Keown
Microsoft Support
br*****@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #5
Hi Brett,

Here's what I can tell you about the status of this issue.

Zach was able to reproduce the problem using some of the compiler output
that I generated per his instructions. Currently Zach is looking into the
cause of the problem.

Has this resolved my problem? Not really. But I assume it is being looked
into since it is a reproducible, fatal compiler error. Once I have a
work-around or a service pack for VS.NET 2003 with a fix then the problem
will be resolved. I don't expect either of those any time soon. I'll try to
post any more information I receive to this thread.

Regards,
Michael

"Brett Keown [MSFT]" <br*****@online.microsoft.com> wrote in message
news:LD**************@cpmsftngxa06.phx.gbl...
Hi Michael,

Thanks again for using the Microsoft Newsgroups! I wanted to find out if
Zach's previous reply has resolved your problem or not. Can you provide
the community with an update to your issue please?

Thanks again,

Brett Keown
Microsoft Support
br*****@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #6

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...
19
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
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...
4
by: sebastien NO Maraux SPAM | last post by:
I am using Ghost Lib 4.0, which is SDK for Phantom haptic device. this lib does not compile under .net, seemingly because of a union of this type : union A { union A* aList; char b; };
9
by: Marco Nova | last post by:
Hello I'm using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I've some problem compiling a project, it give me the error ...
0
by: Brett | last post by:
I'm compiling a very small project with some matlab includes and getting an internal compile error. There are no optimisations in this project, and I'm not using managed code. ...
1
by: Rob | last post by:
The following causes an internal compiler error: void f (int &a) { int (const &b) = a; } (Yes I know it's not correct c++). Rob.
6
by: pasalic.zaharije | last post by:
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...
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.