{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/1203","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/1203/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/1203/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/1203/events","html_url":"https://github.com/esp8266/Arduino/issues/1203","id":121869671,"number":1203,"title":"Compile error in time.c using Visual Micro in VStudio 2015","user":{"login":"gmag11","id":6190183,"avatar_url":"https://avatars.githubusercontent.com/u/6190183?v=3","gravatar_id":"","url":"https://api.github.com/users/gmag11","html_url":"https://github.com/gmag11","followers_url":"https://api.github.com/users/gmag11/followers","following_url":"https://api.github.com/users/gmag11/following{/other_user}","gists_url":"https://api.github.com/users/gmag11/gists{/gist_id}","starred_url":"https://api.github.com/users/gmag11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmag11/subscriptions","organizations_url":"https://api.github.com/users/gmag11/orgs","repos_url":"https://api.github.com/users/gmag11/repos","events_url":"https://api.github.com/users/gmag11/events{/privacy}","received_events_url":"https://api.github.com/users/gmag11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-12T18:08:14Z","updated_at":"2015-12-12T18:11:48Z","closed_at":null,"body":"I am getting compile errors when using Time library, that implies the use of time.c. Errors are due to missing file types definition.\r\n```\r\n\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc\" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ \"-IC:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266/tools/sdk/include\" -c -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -std=gnu99 -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I\"C:\\Users\\Martin_G\\Documents\\Arduino\\CCMonitor\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\cores\\esp8266\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\variants\\generic\" -I\"C:\\Users\\Martin_G\\Documents\\Arduino\\libraries\\ArduinoJson\\src\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\libraries\\ESP8266WebServer\\src\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\libraries\\ESP8266WiFi\\src\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\libraries\\Ticker\" -I\"C:\\Program Files (x86)\\Arduino\\libraries\" -I\"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\libraries\" -I\"D:\\C\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\sti13djo.jxu\\Micro Platforms\\default\\debuggers\" -I\"C:\\Users\\Martin_G\\Documents\\Arduino\\libraries\" \"C:\\Program Files (x86)\\Arduino\\hardware\\esp8266com\\esp8266\\cores\\esp8266\\time.c\" -o \"C:\\Users\\Martin_G\\AppData\\Local\\V.Micro\\Arduino\\Builds\\CCMonitor\\generic\\time.c.o\"\r\ntime.c:27:3: error: unknown type name 'time_t\r\n:time_t      tv_sec\r\ntime.c:28:3: error: unknown type name 'suseconds_t\r\n:suseconds_t tv_usec\r\ntime.c:32:40: warning: 'struct tm' declared inside parameter list [enabled by default]\r\n:extern char* sntp_asctime(const struct tm *t)\r\ntime.c:32:40: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]\r\ntime.c:33:15: error: unknown type name 'time_t\r\n:extern struct tm* sntp_localtime(const time_t *clock)\r\ntime.c:40:1: error: unknown type name 'time_t\r\n:static time_t s_bootTime = 0\r\ntime.c:In function 'ensureBootTimeIsSet\r\ntime.c:47:9: error: unknown type name 'time_t\r\n:time_t now = sntp_get_current_timestamp()\r\ntime.c:At top level\r\ntime.c:78:19: error: unknown type name 'clockid_t\r\n:int clock_gettime(clockid_t unused, struct timespec *tp)\r\ntime.c:86:1: error: unknown type name 'time_t\r\n:time_t mktime(struct tm *t)\r\ntime.c:In function 'mktime\r\ntime.c:90:44: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:90:56: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:90:81: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:90:93: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:90:105: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:90:116: error: dereferencing pointer to incomplete type\r\n:return DIFF1900TO1970 + system_mktime(t->tm_year, t->tm_mon + START_MONTH, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec)\r\ntime.c:At top level\r\ntime.c:93:1: error: unknown type name 'time_t\r\n:time_t time(time_t * t)\r\ntime.c:93:13: error: unknown type name 'time_t\r\n:time_t time(time_t * t)\r\ntime.c:In function 'asctime\r\ntime.c:105:5: warning: passing argument 1 of 'sntp_asctime' from incompatible pointer type [enabled by default]\r\n:return sntp_asctime(t)\r\ntime.c:expected 'const struct tm *' but argument is of type 'const struct tm *\r\n:extern char* sntp_asctime(const struct tm *t)\r\ntime.c:At top level\r\ntime.c:108:8: error: unknown type name 'time_t\r\n:struct tm* localtime(const time_t *clock)\r\ntime.c:113:1: error: unknown type name 'time_t\r\n:char* ctime(const time_t *t)\r\nError compiling core\r\n```\r\nI've not been able to find how to solve this, any clue?\r\n\r\nRegards,\r\nGermán"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/164173075","html_url":"https://github.com/esp8266/Arduino/issues/1203#issuecomment-164173075","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/1203","id":164173075,"user":{"login":"Links2004","id":974709,"avatar_url":"https://avatars.githubusercontent.com/u/974709?v=3","gravatar_id":"","url":"https://api.github.com/users/Links2004","html_url":"https://github.com/Links2004","followers_url":"https://api.github.com/users/Links2004/followers","following_url":"https://api.github.com/users/Links2004/following{/other_user}","gists_url":"https://api.github.com/users/Links2004/gists{/gist_id}","starred_url":"https://api.github.com/users/Links2004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Links2004/subscriptions","organizations_url":"https://api.github.com/users/Links2004/orgs","repos_url":"https://api.github.com/users/Links2004/repos","events_url":"https://api.github.com/users/Links2004/events{/privacy}","received_events_url":"https://api.github.com/users/Links2004/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T18:11:48Z","updated_at":"2015-12-12T18:11:48Z","body":"rename the h file. \r\nwe have a time.h in the core, and the lib has one that gives conflicts, rename the one of the lib and change the include too, and it will work."}}