Well i had it working with simple files such as Hello world. However, when building the following file:
Code:
#include <stdio.h>
#include <conio.h>
#include <string.h>
int get_age(int min_age, int max_age)
{
int age=0;
while((age<min_age)||(age>max_age))
{
printf("\nEnter your age, (between %d and %d):",min_age,max_age);
scanf("%d",&age);
}
return age;
}
I get the following error:
Code:
D:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `_WinMain@16'
Can anyone help me please?