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.
ESP-IDF Eclipse Plugin C++ Unresolved Includes
-
- Posts: 6
- Joined: Tue Feb 26, 2019 6:36 am
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: ESP-IDF Eclipse Plugin C++ Unresolved Includes
I got a similar issue, but on macOS. This resolves: but this doesn't
Code: Select all
#include <stdio.h>
Code: Select all
#include "esp_system.h"
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: ESP-IDF Eclipse Plugin C++ Unresolved Includes
Most include issues can be fixed by running but then the build is broken.
Code: Select all
cmake -G "Eclipse CDT4 - Unix Makefiles"
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Who is online
Users browsing this forum: Gaston1980, Google [Bot] and 67 guests