Solved

vc++ 6 get stuck on compilation error

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Quicksort a dynamic deque 33 73
Dynamically allocate memory 9 65
Safe conversion? 4 72
FMX TEdit KeyUp handler detecting  "enter" key 4 14
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

820 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