Borland C++

misi

Growing Little Guru
My old Visual C++ Version 6 does not want to work under Vista.
OK, I have installed Borland's C++ Builder.

Vista accepted it without hesitation. It's beautiful !

The only little problem I have with it that I cannot compile and run my source files with it.
I can open them but when trying to run them then all I have is:error.

The question is:how to make it work?

What to do with it to display a little message: "Hello World!" ?


#include <iostream>
using namespace std;

int main()
{
cout << "Hello World!";
return 0;
}
ERROR !!!!


[BCC32 Error] File1.cpp(19): E2476 Cannot overload 'main'
[BCC32 Error] File1.cpp(19): E2178 VIRDEF name conflict for 'main()'
[BCC32 Error] File1.cpp(23): E2378 Return statement missing ;
 
Last edited:

misi

Growing Little Guru
Seems it is not a popular compiler.
Could not find solution on WP for the problem.
Just starting to use Microsoft's Visual C++ 2008.

It is not working on the same way as the older C++ Ver. 6 but I can handle it. (So far!:tearful)
The important is that it is working !
 
Back
Top