Hi,
I would like to ask for some help I'm using turbo c. I search a code from the net here's the code
Code:
#include <time.h>
#include <stdio.h>
int main(void)
{
struct tm str_time;
time_t time_of_day;
str_time.tm_year = 2012-1900;
str_time.tm_mon = 6;
str_time.tm_mday = 5;
str_time.tm_hour = 10;
str_time.tm_min = 3;
str_time.tm_sec = 5;
str_time.tm_isdst = 0;
time_of_day = mktime(&str_time);
printf(ctime(&time_of_day));
return 0;
}
I don't know why I'm encountering LINKER ERROR: UNDEFINED SYMBOL _STRUCT IN MODULE
please I need some help