Eclipse unresolved inclusion

User avatar
CseaTec
Posts: 5
Joined: Thu Jul 07, 2022 12:21 pm

Re: Eclipse unresolved inclusion

Postby CseaTec » Thu Jul 07, 2022 12:54 pm

I had this same issue as well, and I had started out with the Hello World project using the following:
  • Espressif-IDE V2.5.0
  • ESP-IDF V4.4
I somehow resolved it by doing the following:
  1. I created a totally new project with its own unique name (choosing not to use a template for now). NOTE that this project had similar unresolved inclusions!
  2. I built this project, which had only the default lines, and it took a while to complete. After it did, the unresolved inclusions were gone.
  3. I closed this project, and I also closed Hello World since it was still in my project explorer.
  4. I closed the Espressif IDE entirely
  5. I reopened the Espressif IDE, and now BOTH projects seem to work totally fine, with rebuilds and such, and the unresolved inclusions do not show up anymore.
Yes, it is very weird and unexplained. My best guess is that the Espressif IDE has issues with the very first project it creates, then this is somehow cleaned up with subsequent project creations. It's just a coincidence that most everyone starts off by trying the "Hello World" project template since we're trying to learn the IDE platform.

Hopefully this information helps someone else.

wiegleyj
Posts: 2
Joined: Sat Nov 12, 2022 1:45 am

Re: Eclipse unresolved inclusion

Postby wiegleyj » Sat Nov 12, 2022 1:51 am

Mine also doesn't fix this. None of these suggestions helped. I hate ESP32 development.

wiegleyj
Posts: 2
Joined: Sat Nov 12, 2022 1:45 am

Re: Eclipse unresolved inclusion

Postby wiegleyj » Sat Nov 12, 2022 1:55 am

Additional... Eclipse shows that <stdio.h> is an unresolved inclusion. How the heck can stdio.h not be resolved??

wtamayo
Posts: 1
Joined: Wed Jan 10, 2024 3:23 am

Re: Eclipse unresolved inclusion

Postby wtamayo » Wed Jan 10, 2024 3:27 am

My unresolved inclusions got fixed by check marking the following: index unused headers as C files
Attachments
includes.JPG
includes.JPG (57.53 KiB) Viewed 6959 times

NikBatch
Posts: 2
Joined: Wed Feb 21, 2024 4:38 pm

Re: Eclipse unresolved inclusion

Postby NikBatch » Wed Feb 21, 2024 4:50 pm

It looked promising, but it didn't cut it for me.
After creating a new project from any demo project, compilation goes without errors.
Immediately after this, when entering to a C file for the first time (for example, in the file with the main() function), the errors appear.
Attachments
Esp32_unresolved.jpg
Esp32_unresolved.jpg (137.34 KiB) Viewed 4495 times

NikBatch
Posts: 2
Joined: Wed Feb 21, 2024 4:38 pm

Re: Eclipse unresolved inclusion

Postby NikBatch » Wed Feb 21, 2024 8:09 pm

I built the esp32 blink demo project without errors using this:
"How to disable the Unresolved Symbol error markers" from here:
https://github.com/espressif/idf-eclips ... ressif-ide
And more:
- recommended here: by wtamayo » Wed Jan 10, 2024 5:27 am
- similar to above in menu/Windows/Preferences/CC++/Indexer
- The context menu of the project/Index/Fresjen..
- From menu/Windows/Preferences/Run-Debug/Launching/LaunchBar/Enable Launch bar
- from Launch bar/project name/Settings - select Toolchain (default)
- set menu/Espressif/Change language : English

Apart from the fact that it builds normally and there are no errors, it quite correctly makes transitions to variable definitions and "Ctrl + mouse click" types (including types with "Unresolved" warnings))

hoesolu
Posts: 2
Joined: Thu Apr 18, 2024 6:22 am

Re: Eclipse unresolved inclusion

Postby hoesolu » Thu Apr 18, 2024 6:36 am

Project
Properties
-> C/C++ General
Indexer: Configure Workspace Settings ...

Index source and header files opened in editor

Who is online

Users browsing this forum: No registered users and 323 guests