Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Multiple "could not be resolved" problems
Multiple "could not be resolved" problems [message #1806970] Mon, 20 May 2019 12:02 Go to next message
Joe Gellen is currently offline Joe GellenFriend
Messages: 1
Registered: May 2019
Junior Member
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 #1807166 is a reply to message #1806970] Fri, 24 May 2019 02:26 Go to previous messageGo to next message
David VavraFriend
Messages: 1427
Registered: October 2012
Senior Member
If it compiles and runs then the messages are probably spurious.
Can't really say without knowing what they are.

If they are appearing in the "Problems view" you can try deleting them
and see if they come back.

Re: Multiple "could not be resolved" problems [message #1807532 is a reply to message #1806970] Sat, 01 June 2019 18:21 Go to previous messageGo to next message
Marco Stalder is currently offline Marco StalderFriend
Messages: 1
Registered: June 2019
Junior Member
Joe Gellen wrote on Mon, 20 May 2019 12:02

After Run I get multiple unresolved issues in the Problems window, as Pasted below).

Interestingly, the program does compile and run ok.


I had the same problem.

For me, rebuilding the index solved it. (right-click on the project folder -> hit "Index" -> hit "Rebuild")

I did also update the index with modified files first. (right-click on the project folder -> hit "Index" -> hit "Update with Modified Files") Though I am not sure whether this was needed.
Re: Multiple "could not be resolved" problems [message #1850496 is a reply to message #1806970] Sat, 05 March 2022 18:10 Go to previous message
Mark Bratcher is currently offline Mark BratcherFriend
Messages: 4
Registered: September 2021
Junior Member
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 18:14]

Report message to a moderator

Previous Topic:Compiling C and C++ code in the same project
Next Topic:StackOverFlowerror Recursive ProgressMonitorWrapper
Goto Forum:
  


Current Time: Mon Jan 30 17:23:23 GMT 2023

Powered by FUDForum. Page generated in 0.02641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top