Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2006

Tip: Looking for answers? Try searching our database.

complier bug endl in VS.NET 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Wonderful - 08 Aug 2006 17:57 GMT
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.
pvdg42 - 08 Aug 2006 20:42 GMT
>I was compiling a VC++ application in VS.NET 2003 and got the following
>error:
[quoted text clipped - 15 lines]
>    << 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.