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: 1426
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 messageGo to next message
Mark Bratcher is currently offline Mark BratcherFriend
Messages: 6
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

Re: Multiple "could not be resolved" problems [message #1858423 is a reply to message #1850496] Sun, 02 April 2023 11:59 Go to previous messageGo to next message
Gerald Marewo is currently offline Gerald MarewoFriend
Messages: 3
Registered: January 2020
Junior Member
I also have the same problem. There are multiple "could not be resolved" errors but deal.II code compiles perfectly. Rebuilding the index does absolutely nothing.This is an old issue but I don't see it resolved several years later.

Any ideas?

[Updated on: Sun, 02 April 2023 12:00]

Report message to a moderator

Re: Multiple "could not be resolved" problems [message #1858690 is a reply to message #1806970] Sun, 16 April 2023 20:53 Go to previous messageGo to next message
Rocky coder is currently offline Rocky coderFriend
Messages: 2
Registered: April 2023
Junior Member
The unresolved issues in the Problems window in Eclipse may be related to the Eclipse indexer not fully recognizing C++11 features or not being updated with the correct configuration. This can happen if the Eclipse project settings or indexer settings are not properly configured for C++11.
Re: Multiple "could not be resolved" problems [message #1858701 is a reply to message #1858690] Mon, 17 April 2023 06:42 Go to previous message
Gerald Marewo is currently offline Gerald MarewoFriend
Messages: 3
Registered: January 2020
Junior Member
Dear Rocky coder,

Thank you for the reply.

How does one properly configure Eclipse project settings or indexer settings for C++11?

Regards,

Gerald.
Previous Topic:Syntax for adding a tool option value in headless build
Next Topic:cmake generation problem
Goto Forum:
  


Current Time: Tue Jan 14 19:23:27 GMT 2025

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

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

Back to the top