Solved

vc++ 6 get stuck on compilation error

Posted on 2004-09-07
5
228 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C language IDE – Compilers installation 14 66
Which IDE to use to begin C++ training? 5 59
Unable to start eclipse ? 17 128
Eclipse IDE - Cannot copy/paste from console output 8 124
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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.

930 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

15 Experts available now in Live!

Get 1:1 Help Now