Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing #include "esp_err.h" (IDFGH-1897) #4100

Closed
joniaford opened this issue Sep 19, 2019 · 1 comment
Closed

Missing #include "esp_err.h" (IDFGH-1897) #4100

joniaford opened this issue Sep 19, 2019 · 1 comment
Assignees

Comments

@joniaford
Copy link

Environment

  • Module or chip used: ESP32
  • Build System: Make
  • Operating System: macOS

Problem Description

Getting the following errors when using esp_tls.h in my code

esp_tls.h:59:5: error: unknown type name 'esp_err_t'
esp_err_t last_error; /*!< error code (based on ESP_ERR_ESP_TLS_BASE) of the last occur...
esp_tls.h:472:1: error: unknown type name 'esp_err_t'; did you mean 'esp_tls_t'?
esp_err_t esp_tls_init_global_ca_store(void);
^~~~~~~~~
esp_tls_t
tools/esp-idf/components/esp-tls/esp_tls.h:288:3: note: 'esp_tls_t' declared here
} esp_tls_t;
^
tools/esp-idf/components/esp-tls/esp_tls.h:491:1: error: unknown type name 'esp_err_t'; did you mean 'esp_tls_t'?
esp_err_t esp_tls_set_global_ca_store(const unsigned char *cacert_pem_buf, const unsigned int cacert_pem_bytes);
^~~~~~~~~
esp_tls_t
tools/esp-idf/components/esp-tls/esp_tls.h:288:3: note: 'esp_tls_t' declared here
} esp_tls_t;
^
tools/esp-idf/components/esp-tls/esp_tls.h:530:1: error: unknown type name 'esp_err_t'; did you mean 'esp_tls_t'?
esp_err_t esp_tls_get_and_clear_last_error(esp_tls_error_handle_t h, int *mbedtls_code, int *mbedtls_flags);
^~~~~~~~~
esp_tls_t
tools/esp-idf/components/esp-tls/esp_tls.h:288:3: note: 'esp_tls_t' declared here
} esp_tls_t;

Fixed by including #include esp_err.h in esp_tls.h

@github-actions github-actions bot changed the title Missing #include "esp_err.h" Missing #include "esp_err.h" (IDFGH-1897) Sep 19, 2019
@AdityaHPatwardhan
Copy link
Collaborator

@joniaford Thank you for reporting , Have added esp_err.h in esp_tls.h, but may I know which idf_version you are using , also can you list all the header files you are including in your app_main apart from esp_tls.h and if possible also list the API you are using from esp_tls.h .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants