Solved

vc++ 6 get stuck on compilation error

Posted on 2004-09-07
5
229 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

777 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