Code: Select all
In function `std::__throw_logic_error(char const*)':
functexcept.cc:(.text._ZSt19__throw_logic_errorPKc+0x0): multiple definition of `std::__throw_logic_error(char const*)'
Code: Select all
#include "esp_system.h"
#include <iostream>
#include <regex>
extern "C" void app_main()
{
char char_array[]="12345678";
//std::string str="12345678901234";
std::regex reg1 ("^(\\d{8}|\\d{12,14})$");
for (int i = 10; i >= 0; i--)
{
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
esp_restart();
}