I have just started to learn Borland c++ builder 6 from a book and I was going on well at the beginning when the book examples were running correctly but suddenly I don't know what happened to the c++ builder , it began to give me strange errors on very simple programs even the programs that I have already ran before correctly . I hope anyone could tell me how to get the builder running correctly again!
The problem appeared in using console applications
I just choose new->other->console wizard->and from the dialog box I mark c++ and console application.
then when the code window appears at first time I press run it runs but whenever I include any header file (like iostream) many errors appear and a new tab called c_locale.h also appears beside the tab called unit1.cpp in the code editor with many lines and as an example of the errors:
[C++ Error] c_locale.h(364): E2187 Unexpected end of file in conditional started on line 260
[C++ Error] c_locale.h(365): E2187 Unexpected end of file in conditional started on line 364
[C++ Error] c_locale.h(366): E2187 Unexpected end of file in conditional started on line 365
all these errors and more appeared when I just added the iostream statement together with the namespace statement in the following program although the same program worked before:
//-----------------------------------------------------------------------
#include <iostream>
using namespace std;
#pragma hdrstop
//----------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
return 0;
}
//----------------------------------------------------------------------
I tried to replace the first two statements with :
#include<iostream.h>
but this did not work either
I don't know what happened to the compiler ..I tried to re-install it but nothing changed
please help me!!