{"action":"closed","issue":{"url":"https://api.github.com/repos/Caerbannog/esphttpclient/issues/10","repository_url":"https://api.github.com/repos/Caerbannog/esphttpclient","labels_url":"https://api.github.com/repos/Caerbannog/esphttpclient/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Caerbannog/esphttpclient/issues/10/comments","events_url":"https://api.github.com/repos/Caerbannog/esphttpclient/issues/10/events","html_url":"https://github.com/Caerbannog/esphttpclient/issues/10","id":102379535,"number":10,"title":"Error: implicit declaration of function ","user":{"login":"tinamore","id":2157845,"avatar_url":"https://avatars.githubusercontent.com/u/2157845?v=3","gravatar_id":"","url":"https://api.github.com/users/tinamore","html_url":"https://github.com/tinamore","followers_url":"https://api.github.com/users/tinamore/followers","following_url":"https://api.github.com/users/tinamore/following{/other_user}","gists_url":"https://api.github.com/users/tinamore/gists{/gist_id}","starred_url":"https://api.github.com/users/tinamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinamore/subscriptions","organizations_url":"https://api.github.com/users/tinamore/orgs","repos_url":"https://api.github.com/users/tinamore/repos","events_url":"https://api.github.com/users/tinamore/events{/privacy}","received_events_url":"https://api.github.com/users/tinamore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-21T13:27:23Z","updated_at":"2016-04-10T19:04:51Z","closed_at":"2016-04-10T19:04:51Z","body":"Hi\r\nThankyou for your project\r\nI combine esphttpclient into epshttpd. When compile show error:\r\n--------------------------\r\nCC httpclient.c\r\nhttpclient.c: In function 'esp_strdup':\r\nhttpclient.c:45:2: error: implicit declaration of function 'pvPortMalloc' [-Werror=implicit-function-declaration]\r\n  char * new_str = (char *)os_malloc(os_strlen(str) + 1); // 1 for null character\r\n  ^\r\nhttpclient.c:45:2: error: implicit declaration of function 'ets_strlen' [-Werror=implicit-function-declaration]\r\nhttpclient.c:47:3: error: implicit declaration of function 'os_printf_plus' [-Werror=implicit-function-declaration]\r\n   os_printf(\"esp_strdup: malloc error\");\r\n   ^\r\nhttpclient.c:50:2: error: implicit declaration of function 'ets_strcpy' [-Werror=implicit-function-declaration]\r\n  os_strcpy(new_str, str);\r\n  ^\r\nhttpclient.c: In function 'receive_callback':\r\nhttpclient.c:76:2: error: implicit declaration of function 'ets_memcpy' [-Werror=implicit-function-declaration]\r\n  os_memcpy(new_buffer, req->buffer, req->buffer_size);\r\n  ^\r\nhttpclient.c:80:2: error: implicit declaration of function 'vPortFree' [-Werror=implicit-function-declaration]\r\n  os_free(req->buffer);\r\n  ^\r\nhttpclient.c: In function 'connect_callback':\r\nhttpclient.c:119:3: error: implicit declaration of function 'ets_sprintf' [-Werror=implicit-function-declaration]\r\n   os_sprintf(post_headers, \"Content-Length: %d\\r\\n\", strlen(req->post_data));\r\n   ^\r\nhttpclient.c: In function 'disconnect_callback':\r\nhttpclient.c:166:4: error: implicit declaration of function 'ets_strncmp' [-Werror=implicit-function-declaration]\r\n    if (os_strncmp(req->buffer, version, strlen(version)) != 0) {\r\n    ^\r\nhttpclient.c:170:5: error: implicit declaration of function 'atoi' [-Werror=implicit-function-declaration]\r\n     http_status = atoi(req->buffer + strlen(version));\r\n     ^\r\nhttpclient.c:171:5: error: implicit declaration of function 'ets_strstr' [-Werror=implicit-function-declaration]\r\n     body = (char *)os_strstr(req->buffer, \"\\r\\n\\r\\n\") + 4;\r\n     ^\r\n----\r\nCan you fix help me. Thanks\r\n"}}