ESP32 IDF -fexceptions setup

serkam
Posts: 7
Joined: Thu Nov 10, 2016 1:31 pm

ESP32 IDF -fexceptions setup

Postby serkam » Fri Dec 21, 2018 3:06 pm

Hi
I am trying to compile Kolban's FTP server written in C++ but the compiler is showing following error:

ftp_kolban/main/FTPCallbacks.cpp:16:34: error: exception handling disabled, use -fexceptions to enable
throw FTPServer::FileException();


I searched a lot but not found how to setup this -fexceptions flag in IDF under Eclipse.

Where can I place this flag in Eclipse?

Thanks,

Sergio

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32 IDF -fexceptions setup

Postby ESP_igrr » Sat Dec 22, 2018 6:18 am

You can enable C++ exceptions support using CONFIG_CXX_EXCEPTIONS option in menuconfig: https://docs.espressif.com/projects/esp ... exceptions

It adds -fexceptions flag and also enables run time support for exceptions.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 267 guests