ESP-IDF Eclipse Plugin C++ Unresolved Includes

kugelblitz
Posts: 6
Joined: Tue Feb 26, 2019 6:36 am

ESP-IDF Eclipse Plugin C++ Unresolved Includes

Postby kugelblitz » Fri Oct 04, 2019 12:37 am

I followed exactly the guide to install the new Eclipse plugin for idf projects found [here][https://github.com/espressif/idf-eclipse-plugin] and I got it to build successfully. I also got it to build successfully when the main file was .cpp as opposed to .c. However, in both cases I ran into unresolved includes of the idf header files. In the case of the C program, a limited number of functions from the idf seemed to be recognized, whereas essentially no functions were recognized in the C++ files. (interestingly, a few wifi functions were resolved correctly, but that was it). In both cases, none of the common headers from the idf were resolved. Further, I do not have access to the normal linker options as in a normal C/C++ projects so I do not know even where to start for resolving this issue. I specifically did a new build with the latest available in hopes that my previous problems with unresolved includes would be fixed, but to no avail.

I am using ubuntu and I got the latest idf from https://github.com/espressif/esp-idf.git

Please let me know if additional information is needed. I would really like to be able to code without red lines everywhere.

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP-IDF Eclipse Plugin C++ Unresolved Includes

Postby BuddyCasino » Sat Oct 05, 2019 5:45 pm

I got a similar issue, but on macOS. This resolves:

Code: Select all

#include <stdio.h>
but this doesn't

Code: Select all

#include "esp_system.h"

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP-IDF Eclipse Plugin C++ Unresolved Includes

Postby BuddyCasino » Sat Oct 05, 2019 6:23 pm

Most include issues can be fixed by running

Code: Select all

cmake -G "Eclipse CDT4 - Unix Makefiles"
but then the build is broken.

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP-IDF Eclipse Plugin C++ Unresolved Includes

Postby BuddyCasino » Tue Oct 22, 2019 8:55 pm


Who is online

Users browsing this forum: Gaston1980, Google [Bot] and 67 guests