473,471 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

complier bug endl in VS.NET 2003

I was compiling a VC++ application in VS.NET 2003 and got the following error:

The following line #1 will not complied and created the following MS
compiler error.
If I change endl to "\n" s in #2, it got compiled. I believe this is a
compiler bug. Has it been identified as bug and has a fix?

1. cout << "ERROR, invalid severity specified in file: "
<< "my file name" << endl;
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
2. cout << "ERROR, invalid severity specified in file: "
<< myLogConfigFile << "\n";
Compiled.

Aug 8 '06 #1
1 990

"Steve Wonderful" <St************@discussions.microsoft.comwrote in
message news:DE**********************************@microsof t.com...
>I was compiling a VC++ application in VS.NET 2003 and got the following
error:

The following line #1 will not complied and created the following MS
compiler error.
If I change endl to "\n" s in #2, it got compiled. I believe this is a
compiler bug. Has it been identified as bug and has a fix?

1. cout << "ERROR, invalid severity specified in file: "
<< "my file name" << endl;
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
2. cout << "ERROR, invalid severity specified in file: "
<< myLogConfigFile << "\n";
Compiled.
As endl works per specifications here in VS .NET 2003, you may have a
corrupt installation.
What type of application are you writing (i.e. which template), and does
endl always fail, no matter the context?
What is the significance of the differences between the first and second
examples beyond use of "\n" vs. endl? Why does one have << "my file name" <<
endl; (string literal "my file name") and the other have << myLogConfigFile
<< "\n";
What type of object is myLogConfigFile?
Please provide a sort, but complete, program that produces the problem on
your system.
Aug 8 '06 #2

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

Similar topics

1
by: Victor Irzak | last post by:
Hello, I have a g++-3.3.1 compiler (latest). I can't figure the type of endl, ends, flush. Here is my program. It compiles with VS.NET, Intel C++ compiler, but not with g++. If you can...
0
by: Francisco J. Reyes | last post by:
I get an Internal complier error when compiling C# windows project that uses a custom Class add as reference to the project. The problem appears to be related to the ENUM type used in the class...
7
by: Penna Elabi | last post by:
In the below Linux C++ program, why do I need endl commands to see the numbers in array exampleArray? I mean that if I remove the endl commands, the program doesn't print anything -- why not? ...
2
by: Xav | last post by:
#include <iostream> using namespace std; class CLog { public: template<typename paramT> CLog& operator<<(const paramT& param) {
3
by: Ygn | last post by:
#include <stdio.h> #include <winsock2.h> #include <windows.h> #include <process.h> #include <string.h> #include <winbase.h> #include <sys/socket.h> I would like to do compiling this header....
5
by: Seven Kast USA | last post by:
Hi pelase explain me complier design of c and i need a small example complier design all phases in c programming . by KAST
2
by: qbin_wang | last post by:
Hi: now i want to download a free c complier which can be used in windows system.and i see many posts in the comp.lang.c,but i don't find the answer.who can tell me the true and correct website...
2
by: Ali Alsaffar | last post by:
Hi there, - I updated my windows XP professional with all critical updates available at windowsupdate.com - I updated Microsoft .NET Framework 1.1.4322 from thier also - I installed Visual Basic...
11
by: neha | last post by:
Hi My question is : Would the expression *p++=c be disallowed by the complier. The answer given in the book is: No.Because here even though the vlue of p is acced twice it is used to modify...
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
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.