The program below wont run due to the following errors :
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
fatal error LNK1120: 1 unresolved externals
Please help me to solve these errors.
#include<stdio.h>
#include<conio.h>
#include<Windows.h>
int Choice=1;
char opt;
int ch=0;
void Main()
{
while (ch!=4)
{
printf ("\n*****************************");
printf ("\n Enter 1 to view stock menu");
printf ("\n*****************************");
printf ("\n*****************************");
printf ("\nEnter 2 to add item to stock");
printf ("\n*****************************");
printf ("\n*****************************");
printf ("\nEnter 3 to view added items to stock");
printf("\n*****************************");
printf("\n*****************************");
printf("\nEnter 4 to exit interface");
printf("\n*****************************");
scanf("%d",&ch);
}
}