PDA

Click to See Complete Forum and Search --> : Borland C++ Compiler/vIDE problems


Comreak
Dec 7th, 2002, 05:45 AM
I'm guessing the problem doesn't having anything to do with vIDE. I followed the instructions for setting up BCC with vIDE (made all the cfg files and added switches to them). Whenever I attempt to compile something, I get the following error:

Unresolved external '_main' referenced from D:\BCC55\LIB\C0X32.OBJ

Yes, I defined my main function properly ("int main()"). I can't figure out what's causing this. Any help is appreciated.

Oh, and here's the rest of my code incase it helps (I know it's simple, I'm only testing out the compiler):


#include <iostream.h>

int main()
{
cout << "Hello, World! \n";
cin.get();
return 0;
}


edit:/Whoops, Forgot the last curley brace. Yes, it was in the code to begin with, just forgot to enter it here.

Comreak
Dec 8th, 2002, 01:41 AM
Oh, come on guys, don't tell me none of you have ever used BCC.

CornedBee
Dec 8th, 2002, 05:23 AM
Not many anway. Not the regulars.