Page 1 of 1

ESP32 IDF -fexceptions setup

Posted: Fri Dec 21, 2018 3:06 pm
by serkam
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

Re: ESP32 IDF -fexceptions setup

Posted: Sat Dec 22, 2018 6:18 am
by ESP_igrr
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.