Solved

vc++ 6 get stuck on compilation error

Posted on 2004-09-07
5
227 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
  • 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 19

Expert Comment

by:mrwad99
ID: 11996086
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now