-
Borland C++Builder 6
I have a problem with Borland C++Builder 6.
The problem comes when i try to run a program with it:
[Linker Error] Unresolved external 'WinMain' referenced from C:\PROGRAMFILER\BORLAND\CBUILDER6\LIB\C0W32.OBJ
What does that mean?
I have tried the same code in another compiler, and that worked just fine.
-
You're trying to build it as a windows application, and the entry point for a windows application is WinMain.
If you're doing a console application, that starts at main(), you need to tell it that.
-
Yeah... make sure you select Win32 Console App for your project type.
-
I've started my program with main()
How can i make the program as a console program?
-
From memory, you go
File->New... and select Console Wizard, and then check 'Console application'
Thats off the top of my head though, I don't have it on this computer.
-
Thanks, I found it.
But now i've got two errors more, these are:
[C++ Error] Test.cpp(18): E2476 Cannot overload 'main'
and...
[C++ Error] Test.cpp(18): E2178 VIRDEF name conflict for 'main()'
What can the problem be this time?
-
If its not too big post your code, my guess is you have 2 definitions for main in there somewhere.