Multiple "could not be resolved" problems [message #1806970] |
Mon, 20 May 2019 08:02  |
Eclipse User |
|
|
|
I have recently installed (the latest builds of) 'Eclipse IDE for C/C++ Developers' and minGW to help me to get back into C++ after a long time away.
I have added "-std=c++11" to "Other flags" at C/C++ Build/Settings/Tool Settings/GCC C++ Compiler/Miscellaneous
I have a small program utilising a number of C++11 features (e.g. using the chrono library, .emplace_back).
After Run I get multiple unresolved issues in the Problems window, as Pasted below).
Interestingly, the program does compile and run ok.
1) With this, is there something I'm not setting up in Eclipse to resolve these issues?
2) While it might not apply to this forum, is there still an issue with the 'to_string()' function e.g. the following extract does not compile:
window.setTitle("Bullets on screen: " + to_string(bullets.size()) + " currentSlice: " + to_string(currentSlice) + " FT: " + to_string(ft) + " FPS: " + to_string(fps));
Thanks.
|
|
|
|
|
Re: Multiple "could not be resolved" problems [message #1850496 is a reply to message #1806970] |
Sat, 05 March 2022 13:10   |
Eclipse User |
|
|
|
I have this same issue. My Problems view shows 26 problems but the code compiles fine. The number of problems shown seems to vary.
I am using the ESP-IDF plugin for Eclipse.
The problems mostly seem to center around the inability to resolve symbols from the ESP-IDF library. It acts as if I haven't included the headers, but I have, obviously, since it compiles with 0 warnings or errors.
I have tried many times to clean the project, re-index, "Freshen all files", "Resolve unresolved includes", just about anything in the menu. Nothing seems to fix it.
The really odd thing is that it was working fine for a number of weeks. I updated my ESP-IDF library, and it started happening again. The updated library is in the exact same location as the old one was.
Sadly, I'm unable to use the great features of Eclipse that lets me peak at library structure definitions and such since it thinks they are undefined. Is there a setting somewhere that defines where it looks to resolve symbols for this particular feature?
[Updated on: Sat, 05 March 2022 13:14] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.04743 seconds