Solved

vc++ 6 get stuck on compilation error

Posted on 2004-09-07
5
232 Views
Last Modified: 2012-05-05
Hi,

I am using vc++ on windows 2000.

The 'err' example project consists of a single file 'main.cpp':

#include <iostream.h>

void main()
{
     cout << "Hello world\n" ;
}
I get this in the 'Build' tab below:
Compiling...
main.cpp
Linking...

err.exe - 0 error(s), 0 warning(s)

Everything is OK when I compile the application and compilation passes, linking is OK and it runs without a problem.

If I have a compilation error (the string 'err' after the cout command):

#include <iostream.h>

void main()
{
     cout << "Hello world\n" ;
     err
}
 I get this in the 'Build' tab below:
Compiling...
main.cpp
D:\Applications\PCBA\err\main.cpp(7) : error C2065: 'err' : undeclared identifier
D:\Applications\PCBA\err\main.cpp(7) : error C2143: syntax error : missing ';' before '}'

And the application (vc6) get stuck.
I can not stop the compilation or any other thing.
The only thing I can do is CTRL+ALT+DEL end the vc6 task and reopen it.
This happens on every application on any compilation error.
I have uninstalled the vc++ (also the MSDN) and reinstalled it but it did not solve the problem.
What should I do ???

Thank you
0
Comment
Question by:ramyaniv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Farzad Akbarnejad
ID: 11995304
Please try to reinstall your Windows or try to repare it. You can start up your computer with Windows 2000 botable CD then choose repair option. Then try VC IDE again.

Thanks
-FA
0
 
LVL 14

Expert Comment

by:Farzad Akbarnejad
ID: 11995330
Before repairing or reinstalling your Windows please try to restart your computer and then try a new project in your IDE and test your code with err.

Thanks
-FA
0
 
LVL 19

Accepted Solution

by:
mrwad99 earned 125 total points
ID: 11996068
Install the latest service pack for VC++.  Search Microsoft downloads for the link.

That should help.
0
 
LVL 3

Expert Comment

by:mte01
ID: 12000552
Check the Drive (D Drive) that you are compiling on for any disk errors using the chkdsk utility in the DOS command window.

Also try installing VC++ 6.0 on another drive
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question