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

Undefined reference to ESP_ERR_CHECK (IDFGH-5221) #6994

Closed
alexhenrie opened this issue May 6, 2021 · 0 comments
Closed

Undefined reference to ESP_ERR_CHECK (IDFGH-5221) #6994

alexhenrie opened this issue May 6, 2021 · 0 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@alexhenrie
Copy link
Contributor

alexhenrie commented May 6, 2021

Environment

  • Development Kit: ESP32-DevKitC
  • Kit version (for WroverKit/PicoKit/DevKitC): v4
  • Module or chip used: ESP32-WROOM-32
  • IDF version (run git describe --tags to find it): v4.2.1
  • Build System: CMake
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
  • Operating System: Linux
  • Using an IDE?: No
  • Power Supply: USB

Problem Description

When I try to use the example code from https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/wifi_provisioning.html, I get:

error: implicit declaration of function 'ESP_ERR_CHECK'; did you mean 'ESP_ERROR_CHECK'? [-Werror=implicit-function-declaration]

I am new to ESP32 development, but as far as I can tell, ESP_ERR_CHECK is indeed supposed to be ESP_ERROR_CHECK.

Expected Behavior

The example code should compile without errors.

Actual Behavior

The example code cannot be compiled.

Steps to reproduce

Copy and paste any of the examples that contain ESP_ERR_CHECK from https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/provisioning/wifi_provisioning.html into an ESP-IDF project.

Code to reproduce this issue

#include <wifi_provisioning/manager.h>
#include <wifi_provisioning/scheme_ble.h>

void app_main(void)
{
    wifi_prov_mgr_config_t config = {
        .scheme = wifi_prov_scheme_ble,
        .scheme_event_handler = WIFI_PROV_SCHEME_BLE_EVENT_HANDLER_FREE_BTDM
    };

    ESP_ERR_CHECK( wifi_prov_mgr_init(config) );
}
@espressif-bot espressif-bot added the Status: Opened Issue is new label May 6, 2021
@github-actions github-actions bot changed the title Undefined reference to ESP_ERR_CHECK Undefined reference to ESP_ERR_CHECK (IDFGH-5221) May 6, 2021
@espressif-bot espressif-bot added Status: In Progress Work is in progress Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: In Progress Work is in progress labels May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

2 participants